home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 70 61 75 | 6c 40 61 74 6c 61 73 2e |From pau|l@atlas.|
|00000010| 64 65 76 2e 61 62 63 63 | 6f 6d 70 2e 6f 7a 2e 61 |dev.abcc|omp.oz.a|
|00000020| 75 20 4d 6f 6e 20 4d 61 | 79 20 20 32 20 30 36 3a |u Mon Ma|y 2 06:|
|00000030| 35 38 3a 32 35 20 31 39 | 39 34 0a 52 65 63 65 69 |58:25 19|94.Recei|
|00000040| 76 65 64 3a 20 66 72 6f | 6d 20 75 73 61 67 65 2e |ved: fro|m usage.|
|00000050| 63 73 64 2e 75 6e 73 77 | 2e 4f 5a 2e 41 55 20 62 |csd.unsw|.OZ.AU b|
|00000060| 79 20 53 75 6e 53 49 54 | 45 2e 55 6e 63 2e 45 44 |y SunSIT|E.Unc.ED|
|00000070| 55 20 28 35 2e 36 35 63 | 2b 49 44 41 2f 46 76 4b |U (5.65c|+IDA/FvK|
|00000080| 2d 31 2e 30 37 29 20 77 | 69 74 68 20 53 4d 54 50 |-1.07) w|ith SMTP|
|00000090| 0a 20 20 20 20 20 20 20 | 20 20 20 69 64 20 41 41 |. | id AA|
|000000a0| 32 30 32 36 31 3b 20 53 | 75 6e 2c 20 31 20 4d 61 |20261; S|un, 1 Ma|
|000000b0| 79 20 31 39 39 34 20 32 | 31 3a 34 35 3a 31 31 20 |y 1994 2|1:45:11 |
|000000c0| 2d 30 34 30 30 0a 52 65 | 63 65 69 76 65 64 3a 20 |-0400.Re|ceived: |
|000000d0| 62 79 20 75 73 61 67 65 | 2e 63 73 64 2e 75 6e 73 |by usage|.csd.uns|
|000000e0| 77 2e 4f 5a 2e 41 55 20 | 69 64 20 41 41 32 39 34 |w.OZ.AU |id AA294|
|000000f0| 38 30 0a 20 20 28 35 2e | 36 35 63 2f 49 44 41 2d |80. (5.|65c/IDA-|
|00000100| 31 2e 34 2e 34 20 66 6f | 72 20 77 69 6e 73 6f 63 |1.4.4 fo|r winsoc|
|00000110| 6b 2d 68 61 63 6b 65 72 | 73 25 73 75 6e 73 69 74 |k-hacker|s%sunsit|
|00000120| 65 2e 75 6e 63 2e 65 64 | 75 29 3b 20 4d 6f 6e 2c |e.unc.ed|u); Mon,|
|00000130| 20 32 20 4d 61 79 20 31 | 39 39 34 20 31 31 3a 34 | 2 May 1|994 11:4|
|00000140| 34 3a 35 35 20 2b 31 30 | 30 30 0a 52 65 63 65 69 |4:55 +10|00.Recei|
|00000150| 76 65 64 3a 20 62 79 20 | 61 74 6c 61 73 20 28 34 |ved: by |atlas (4|
|00000160| 2e 31 2f 31 2e 33 35 29 | 0a 09 69 64 20 41 41 30 |.1/1.35)|..id AA0|
|00000170| 32 35 34 31 3b 20 4d 6f | 6e 2c 20 32 20 4d 61 79 |2541; Mo|n, 2 May|
|00000180| 20 39 34 20 31 31 3a 35 | 38 3a 32 36 20 45 53 54 | 94 11:5|8:26 EST|
|00000190| 0a 4d 65 73 73 61 67 65 | 2d 49 64 3a 20 3c 39 34 |.Message|-Id: <94|
|000001a0| 30 35 30 32 30 31 35 38 | 2e 41 41 30 32 35 34 31 |05020158|.AA02541|
|000001b0| 40 61 74 6c 61 73 3e 0a | 46 72 6f 6d 3a 20 70 61 |@atlas>.|From: pa|
|000001c0| 75 6c 40 61 74 6c 61 73 | 2e 61 62 63 63 6f 6d 70 |ul@atlas|.abccomp|
|000001d0| 2e 6f 7a 2e 61 75 0a 44 | 61 74 65 3a 20 4d 6f 6e |.oz.au.D|ate: Mon|
|000001e0| 2c 20 32 20 4d 61 79 20 | 31 39 39 34 20 31 31 3a |, 2 May |1994 11:|
|000001f0| 35 38 3a 32 35 20 2d 30 | 35 30 30 0a 58 2d 4d 61 |58:25 -0|500.X-Ma|
|00000200| 69 6c 65 72 3a 20 4d 61 | 69 6c 20 55 73 65 72 27 |iler: Ma|il User'|
|00000210| 73 20 53 68 65 6c 6c 20 | 28 37 2e 32 2e 32 20 34 |s Shell |(7.2.2 4|
|00000220| 2f 31 32 2f 39 31 29 0a | 54 6f 3a 20 6a 6f 62 72 |/12/91).|To: jobr|
|00000230| 69 65 6e 40 6d 63 73 2e | 75 6d 65 73 2e 75 6d 64 |ien@mcs.|umes.umd|
|00000240| 2e 65 64 75 2c 0a 20 20 | 20 20 20 20 20 20 4d 75 |.edu,. | Mu|
|00000250| 6c 74 69 70 6c 65 20 72 | 65 63 69 70 69 65 6e 74 |ltiple r|ecipient|
|00000260| 73 20 6f 66 20 6c 69 73 | 74 20 3c 77 69 6e 73 6f |s of lis|t <winso|
|00000270| 63 6b 2d 68 61 63 6b 65 | 72 73 40 73 75 6e 73 69 |ck-hacke|rs@sunsi|
|00000280| 74 65 2e 75 6e 63 2e 65 | 64 75 3e 0a 53 75 62 6a |te.unc.e|du>.Subj|
|00000290| 65 63 74 3a 20 52 65 3a | 20 46 44 5f 52 45 41 44 |ect: Re:| FD_READ|
|000002a0| 20 40 20 72 65 63 76 28 | 29 0a 0a 54 68 75 73 20 | @ recv(|)..Thus |
|000002b0| 65 78 70 6f 75 6e 64 65 | 64 20 22 4a 61 6d 65 73 |expounde|d "James|
|000002c0| 20 4d 2e 20 4f 27 42 72 | 69 65 6e 2c 20 4a 72 22 | M. O'Br|ien, Jr"|
|000002d0| 20 6f 6e 20 41 70 72 20 | 33 30 2c 20 31 3a 33 31 | on Apr |30, 1:31|
|000002e0| 70 6d 3a 0a 2f 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |pm:./---|--------|
|000002f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 7c 49 27 76 65 20 |--------|-.|I've |
|00000300| 62 65 65 6e 20 77 6f 72 | 6b 69 6e 67 20 77 69 74 |been wor|king wit|
|00000310| 68 20 57 53 41 41 73 79 | 6e 63 53 65 6c 65 63 74 |h WSAAsy|ncSelect|
|00000320| 20 61 6e 64 20 46 44 5f | 52 45 41 44 2e 20 20 41 | and FD_|READ. A|
|00000330| 74 74 65 6d 70 74 69 6e | 67 20 0a 7c 74 6f 20 6d |ttemptin|g .|to m|
|00000340| 61 6b 65 20 77 73 66 69 | 6e 67 65 72 20 61 6e 20 |ake wsfi|nger an |
|00000350| 61 73 79 6e 63 20 63 6c | 69 65 6e 74 2e 20 20 49 |async cl|ient. I|
|00000360| 27 76 65 20 62 65 65 6e | 20 61 62 6c 65 20 74 6f |'ve been| able to|
|00000370| 20 64 6f 20 74 68 69 73 | 20 62 75 74 20 49 27 76 | do this| but I'v|
|00000380| 65 20 0a 7c 66 6f 75 6e | 64 20 6f 6e 65 20 67 6c |e .|foun|d one gl|
|00000390| 69 74 63 68 20 49 20 61 | 6d 20 6e 6f 74 20 73 75 |itch I a|m not su|
|000003a0| 72 65 20 74 68 61 74 20 | 65 69 74 68 65 72 20 49 |re that |either I|
|000003b0| 20 61 6d 20 68 61 6e 64 | 6c 69 6e 67 20 63 6f 72 | am hand|ling cor|
|000003c0| 72 65 63 6c 74 20 6f 72 | 20 69 74 73 20 0a 7c 6e |reclt or| its .|n|
|000003d0| 6f 74 20 63 6f 6d 70 6c | 65 74 65 6c 79 20 6f 62 |ot compl|etely ob|
|000003e0| 76 69 6f 75 73 20 74 6f | 20 6d 65 2e 0a 7c 0a 7c |vious to| me..|.||
|000003f0| 41 73 20 61 6e 20 65 78 | 61 6d 70 6c 65 3a 20 0a |As an ex|ample: .|
|00000400| 7c 0a 7c 4f 6e 63 65 20 | 49 27 76 65 20 63 6f 6e ||.|Once |I've con|
|00000410| 6e 65 63 74 65 64 2c 20 | 49 20 75 73 65 20 57 53 |nected, |I use WS|
|00000420| 41 41 73 79 6e 63 53 65 | 6c 65 63 74 20 74 6f 20 |AAsyncSe|lect to |
|00000430| 73 65 74 20 74 68 65 20 | 73 6f 63 6b 65 74 20 74 |set the |socket t|
|00000440| 6f 20 4e 42 20 0a 7c 61 | 6e 64 20 49 20 77 61 6e |o NB .|a|nd I wan|
|00000450| 74 20 46 44 5f 52 45 41 | 44 2e 2e 2e 2e 0a 7c 0a |t FD_REA|D.....|.|
|00000460| 7c 49 6e 20 74 68 65 20 | 77 6e 64 70 72 6f 63 20 ||In the |wndproc |
|00000470| 49 20 68 61 6e 64 6c 65 | 20 46 44 5f 52 45 41 44 |I handle| FD_READ|
|00000480| 20 61 6e 64 20 63 61 6c | 6c 20 72 65 63 76 28 29 | and cal|l recv()|
|00000490| 20 6f 6e 63 65 20 66 6f | 72 20 65 61 63 68 20 0a | once fo|r each .|
|000004a0| 7c 46 44 5f 52 45 41 44 | 20 72 65 63 65 69 76 65 ||FD_READ| receive|
|000004b0| 64 2e 20 20 57 68 65 72 | 65 20 69 74 20 61 70 70 |d. Wher|e it app|
|000004c0| 65 61 72 73 20 74 6f 20 | 62 65 63 6f 6d 65 20 67 |ears to |become g|
|000004d0| 72 65 79 2c 20 68 6f 77 | 20 64 6f 65 73 20 6f 6e |rey, how| does on|
|000004e0| 65 0a 7c 68 61 6e 64 6c | 65 20 74 68 65 20 65 6e |e.|handl|e the en|
|000004f0| 64 20 6f 66 20 61 20 64 | 61 74 61 20 73 74 72 65 |d of a d|ata stre|
|00000500| 61 6d 3f 20 20 41 73 20 | 69 6e 20 72 65 63 65 69 |am? As |in recei|
|00000510| 76 69 6e 67 20 61 20 72 | 65 70 6c 79 20 66 72 6f |ving a r|eply fro|
|00000520| 6d 20 61 20 66 69 6e 67 | 65 72 20 0a 7c 73 65 72 |m a fing|er .|ser|
|00000530| 76 65 72 2c 20 69 74 73 | 20 6e 6f 74 20 72 65 61 |ver, its| not rea|
|00000540| 64 69 6c 79 20 61 70 70 | 61 72 65 6e 74 2c 20 68 |dily app|arent, h|
|00000550| 6f 77 20 6f 6e 65 20 77 | 6f 75 6c 64 20 72 65 63 |ow one w|ould rec|
|00000560| 6f 67 6e 69 7a 65 20 74 | 68 61 74 20 74 68 65 20 |ognize t|hat the |
|00000570| 0a 7c 73 74 72 65 61 6d | 20 69 73 20 45 4f 46 2e |.|stream| is EOF.|
|00000580| 20 20 20 0a 0a 57 69 74 | 68 20 66 69 6e 67 65 72 | ..Wit|h finger|
|00000590| 2c 20 74 68 65 20 73 65 | 72 76 65 72 20 63 6c 6f |, the se|rver clo|
|000005a0| 73 65 73 20 69 74 73 20 | 65 6e 64 20 6f 66 20 74 |ses its |end of t|
|000005b0| 68 65 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 20 61 66 |he conne|ction af|
|000005c0| 74 65 72 20 73 65 6e 64 | 69 6e 67 0a 74 68 65 20 |ter send|ing.the |
|000005d0| 72 65 73 70 6f 6e 73 65 | 20 73 74 72 69 6e 67 2e |response| string.|
|000005e0| 20 49 6e 20 79 6f 75 72 | 20 63 61 73 65 2c 20 79 | In your| case, y|
|000005f0| 6f 75 20 77 69 6c 6c 20 | 67 65 74 20 46 44 5f 52 |ou will |get FD_R|
|00000600| 45 41 44 20 6d 65 73 73 | 61 67 65 73 20 74 6f 0a |EAD mess|ages to.|
|00000610| 69 6e 64 69 63 61 74 65 | 20 74 68 65 72 65 20 69 |indicate| there i|
|00000620| 73 20 64 61 74 61 20 77 | 61 69 74 69 6e 67 20 74 |s data w|aiting t|
|00000630| 6f 20 62 65 20 72 65 61 | 64 2c 20 62 75 74 20 77 |o be rea|d, but w|
|00000640| 68 65 6e 20 74 68 65 20 | 65 6e 64 2d 6f 66 2d 63 |hen the |end-of-c|
|00000650| 6f 6e 6e 65 63 74 69 6f | 6e 0a 46 49 4e 20 61 72 |onnectio|n.FIN ar|
|00000660| 72 69 76 65 73 2c 20 74 | 68 65 20 44 4c 4c 20 77 |rives, t|he DLL w|
|00000670| 6f 75 6c 64 20 6c 69 6b | 65 20 74 6f 20 70 6f 73 |ould lik|e to pos|
|00000680| 74 20 79 6f 75 20 46 44 | 5f 43 4c 4f 53 45 20 74 |t you FD|_CLOSE t|
|00000690| 6f 20 74 65 6c 6c 20 79 | 6f 75 20 73 6f 20 2d 20 |o tell y|ou so - |
|000006a0| 69 74 0a 73 68 6f 75 6c | 64 20 4e 4f 54 20 70 6f |it.shoul|d NOT po|
|000006b0| 73 74 20 46 44 5f 52 45 | 41 44 20 61 73 20 77 65 |st FD_RE|AD as we|
|000006c0| 6c 6c 20 28 77 68 69 63 | 68 20 74 68 65 20 73 74 |ll (whic|h the st|
|000006d0| 61 63 6b 73 20 79 6f 75 | 20 77 6f 72 6b 20 6f 6e |acks you| work on|
|000006e0| 20 73 65 65 6d 20 74 6f | 20 62 65 20 0a 64 6f 69 | seem to| be .doi|
|000006f0| 6e 67 21 29 2e 20 0a 0a | 09 59 6f 75 72 20 73 6f |ng!). ..|.Your so|
|00000700| 6c 75 74 69 6f 6e 20 69 | 73 20 74 6f 20 63 61 6c |lution i|s to cal|
|00000710| 6c 20 57 53 41 41 73 79 | 6e 63 53 65 6c 65 63 74 |l WSAAsy|ncSelect|
|00000720| 20 77 69 74 68 20 69 6e | 74 65 72 65 73 74 20 69 | with in|terest i|
|00000730| 6e 20 62 6f 74 68 0a 46 | 44 5f 52 45 41 44 20 61 |n both.F|D_READ a|
|00000740| 6e 64 20 46 44 5f 43 4c | 4f 53 45 2e 20 54 68 61 |nd FD_CL|OSE. Tha|
|00000750| 74 20 77 61 79 20 79 6f | 75 20 77 69 6c 6c 20 67 |t way yo|u will g|
|00000760| 65 74 20 74 68 65 20 46 | 44 5f 43 4c 4f 53 45 20 |et the F|D_CLOSE |
|00000770| 6d 65 73 73 61 67 65 20 | 77 68 65 6e 20 74 68 65 |message |when the|
|00000780| 0a 64 61 74 61 20 73 74 | 72 65 61 6d 20 68 61 73 |.data st|ream has|
|00000790| 20 65 6e 64 65 64 2e 0a | 0a 0a 2d 2d 20 0a 50 61 | ended..|..-- .Pa|
|000007a0| 75 6c 20 42 72 6f 6f 6b | 73 20 20 20 20 20 20 20 |ul Brook|s |
|000007b0| 20 20 20 20 20 20 20 7c | 70 61 75 6c 40 61 62 63 | ||paul@abc|
|000007c0| 63 6f 6d 70 2e 6f 7a 2e | 61 75 20 20 20 20 20 20 |comp.oz.|au |
|000007d0| 20 7c 45 6d 65 72 67 69 | 6e 67 20 53 74 61 6e 64 | |Emergi|ng Stand|
|000007e0| 61 72 64 3a 0a 54 75 72 | 62 6f 53 6f 66 74 20 50 |ard:.Tur|boSoft P|
|000007f0| 74 79 20 4c 74 64 20 20 | 20 20 20 20 20 20 7c 70 |ty Ltd | |p|
|00000800| 77 62 40 6e 65 77 74 2e | 70 68 79 73 2e 75 6e 73 |wb@newt.|phys.uns|
|00000810| 77 2e 65 64 75 2e 61 75 | 7c 20 20 6f 6e 65 20 74 |w.edu.au|| one t|
|00000820| 68 61 74 20 68 61 73 20 | 6e 6f 74 20 79 65 74 0a |hat has |not yet.|
|00000830| 35 37 39 20 48 61 72 72 | 69 73 20 53 74 2e 2c 20 |579 Harr|is St., |
|00000840| 55 6c 74 69 6d 6f 20 20 | 20 7c 20 20 20 20 20 20 |Ultimo | | |
|00000850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000860| 20 20 20 7c 20 20 62 65 | 65 6e 20 73 75 70 65 72 | | be|en super|
|00000870| 73 65 64 65 64 2e 0a 53 | 79 64 6e 65 79 20 41 75 |seded..S|ydney Au|
|00000880| 73 74 72 61 6c 69 61 20 | 32 30 30 37 20 20 20 20 |stralia |2007 |
|00000890| 7c 70 68 3a 20 2b 36 31 | 20 32 20 32 38 31 20 33 ||ph: +61| 2 281 3|
|000008a0| 31 35 35 20 20 20 20 20 | 20 20 7c 20 20 0a 46 72 |155 | | .Fr|
|000008b0| 6f 6d 20 62 72 75 63 65 | 40 69 73 69 2e 46 72 6f |om bruce|@isi.Fro|
|000008c0| 6e 74 69 65 72 54 65 63 | 68 2e 43 4f 4d 20 4d 6f |ntierTec|h.COM Mo|
|000008d0| 6e 20 4d 61 79 20 20 32 | 20 30 32 3a 33 38 3a 31 |n May 2| 02:38:1|
|000008e0| 35 20 31 39 39 34 0a 52 | 65 63 65 69 76 65 64 3a |5 1994.R|eceived:|
|000008f0| 20 66 72 6f 6d 20 69 73 | 69 2e 46 72 6f 6e 74 69 | from is|i.Fronti|
|00000900| 65 72 54 65 63 68 2e 43 | 4f 4d 20 62 79 20 53 75 |erTech.C|OM by Su|
|00000910| 6e 53 49 54 45 2e 55 6e | 63 2e 45 44 55 20 28 35 |nSITE.Un|c.EDU (5|
|00000920| 2e 36 35 63 2b 49 44 41 | 2f 46 76 4b 2d 31 2e 30 |.65c+IDA|/FvK-1.0|
|00000930| 37 29 20 77 69 74 68 20 | 53 4d 54 50 0a 20 20 20 |7) with |SMTP. |
|00000940| 20 20 20 20 20 20 20 69 | 64 20 41 41 32 35 32 36 | i|d AA2526|
|00000950| 36 3b 20 4d 6f 6e 2c 20 | 32 20 4d 61 79 20 31 39 |6; Mon, |2 May 19|
|00000960| 39 34 20 30 39 3a 33 38 | 3a 30 35 20 2d 30 34 30 |94 09:38|:05 -040|
|00000970| 30 0a 52 65 63 65 69 76 | 65 64 3a 20 66 72 6f 6d |0.Receiv|ed: from|
|00000980| 20 62 72 75 63 65 73 2e | 46 72 6f 6e 74 69 65 72 | bruces.|Frontier|
|00000990| 54 65 63 68 2e 43 4f 4d | 20 62 79 20 69 73 69 2e |Tech.COM| by isi.|
|000009a0| 46 72 6f 6e 74 69 65 72 | 54 65 63 68 2e 43 4f 4d |Frontier|Tech.COM|
|000009b0| 20 28 35 2e 36 35 2f 31 | 2e 34 30 29 0a 09 69 64 | (5.65/1|.40)..id|
|000009c0| 20 41 41 30 35 35 38 39 | 3b 20 4d 6f 6e 2c 20 32 | AA05589|; Mon, 2|
|000009d0| 20 4d 61 79 20 39 34 20 | 30 38 3a 33 37 3a 30 30 | May 94 |08:37:00|
|000009e0| 20 2d 30 35 30 30 0a 58 | 2d 4d 61 69 6c 65 72 3a | -0500.X|-Mailer:|
|000009f0| 20 53 75 70 65 72 54 43 | 50 2f 4e 46 53 20 66 6f | SuperTC|P/NFS fo|
|00000a00| 72 20 57 69 6e 64 6f 77 | 73 20 56 65 72 73 69 6f |r Window|s Versio|
|00000a10| 6e 20 34 2e 30 30 20 28 | 4d 61 69 6c 65 72 20 56 |n 4.00 (|Mailer V|
|00000a20| 65 72 73 69 6f 6e 20 31 | 2e 30 32 29 0a 4d 65 73 |ersion 1|.02).Mes|
|00000a30| 73 61 67 65 2d 49 64 3a | 20 3c 32 44 43 35 31 30 |sage-Id:| <2DC510|
|00000a40| 35 41 2d 30 30 30 30 30 | 30 30 31 40 42 72 75 63 |5A-00000|001@Bruc|
|00000a50| 65 73 2e 46 72 6f 6e 74 | 69 65 72 54 65 63 68 2e |es.Front|ierTech.|
|00000a60| 43 4f 4d 3e 0a 46 72 6f | 6d 3a 20 42 72 75 63 65 |COM>.Fro|m: Bruce|
|00000a70| 40 69 73 69 2e 46 72 6f | 6e 74 69 65 72 54 65 63 |@isi.Fro|ntierTec|
|00000a80| 68 2e 43 4f 4d 0a 44 61 | 74 65 3a 20 4d 6f 6e 2c |h.COM.Da|te: Mon,|
|00000a90| 20 30 32 20 4d 61 79 20 | 39 34 20 30 38 3a 33 38 | 02 May |94 08:38|
|00000aa0| 3a 31 35 20 43 53 54 0a | 53 75 62 6a 65 63 74 3a |:15 CST.|Subject:|
|00000ab0| 20 52 65 3a 20 43 75 72 | 69 6f 75 73 20 62 65 68 | Re: Cur|ious beh|
|00000ac0| 61 76 69 6f 75 72 20 66 | 72 6f 6d 20 77 69 6e 73 |aviour f|rom wins|
|00000ad0| 6f 63 6b 0a 54 6f 3a 20 | 72 63 71 40 66 74 70 2e |ock.To: |rcq@ftp.|
|00000ae0| 63 6f 6d 0a 43 63 3a 20 | 4d 75 6c 74 69 70 6c 65 |com.Cc: |Multiple|
|00000af0| 20 72 65 63 69 70 69 65 | 6e 74 73 20 6f 66 20 6c | recipie|nts of l|
|00000b00| 69 73 74 20 3c 77 69 6e | 73 6f 63 6b 2d 68 61 63 |ist <win|sock-hac|
|00000b10| 6b 65 72 73 40 73 75 6e | 73 69 74 65 2e 75 6e 63 |kers@sun|site.unc|
|00000b20| 2e 65 64 75 3e 0a 4d 69 | 6d 65 2d 56 65 72 73 69 |.edu>.Mi|me-Versi|
|00000b30| 6f 6e 3a 20 31 2e 30 0a | 43 6f 6e 74 65 6e 74 2d |on: 1.0.|Content-|
|00000b40| 54 79 70 65 3a 20 54 65 | 78 74 2f 50 6c 61 69 6e |Type: Te|xt/Plain|
|00000b50| 3b 20 43 68 61 72 73 65 | 74 3d 55 53 2d 41 53 43 |; Charse|t=US-ASC|
|00000b60| 49 49 0a 0a 3e 0a 3e 3e | 20 20 3e 2e 2e 2e 20 61 |II..>.>>| >... a|
|00000b70| 73 73 75 6d 69 6e 67 20 | 79 6f 75 72 20 61 70 70 |ssuming |your app|
|00000b80| 6c 69 63 61 74 69 6f 6e | 20 69 6e 69 74 69 61 74 |lication| initiat|
|00000b90| 65 64 20 74 68 65 20 63 | 6c 6f 73 65 20 28 63 61 |ed the c|lose (ca|
|00000ba0| 6c 6c 65 64 0a 3e 3e 20 | 20 3e 63 6c 6f 73 65 73 |lled.>> | >closes|
|00000bb0| 6f 63 6b 65 74 28 29 20 | 66 69 72 73 74 29 2c 20 |ocket() |first), |
|00000bc0| 74 68 65 6e 20 79 6f 75 | 27 64 20 62 65 20 69 6e |then you|'d be in|
|00000bd0| 20 46 49 4e 5f 57 41 49 | 54 2e 20 20 4f 6e 20 70 | FIN_WAI|T. On p|
|00000be0| 61 67 65 20 39 31 20 69 | 6e 20 74 68 65 0a 3e 3e |age 91 i|n the.>>|
|00000bf0| 20 20 3e 64 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e | >docum|entation|
|00000c00| 20 66 6f 72 20 57 53 41 | 41 73 79 6e 63 53 65 6c | for WSA|AsyncSel|
|00000c10| 65 63 74 28 29 20 74 68 | 65 20 73 70 65 63 20 73 |ect() th|e spec s|
|00000c20| 61 79 73 20 22 54 68 65 | 20 46 44 5f 43 4c 4f 53 |ays "The| FD_CLOS|
|00000c30| 45 20 69 73 0a 3e 3e 20 | 20 3e 70 6f 73 74 65 64 |E is.>> | >posted|
|00000c40| 20 77 68 65 6e 20 74 68 | 65 20 63 6f 6e 6e 65 63 | when th|e connec|
|00000c50| 74 69 6f 6e 20 67 6f 65 | 73 20 69 6e 74 6f 20 46 |tion goe|s into F|
|00000c60| 49 4e 5f 57 41 49 54 20 | 6f 72 20 43 4c 4f 53 45 |IN_WAIT |or CLOSE|
|00000c70| 5f 57 41 49 54 20 73 74 | 61 74 65 73 2e 22 0a 3e |_WAIT st|ates.".>|
|00000c80| 3e 20 20 0a 3e 3e 20 20 | 54 68 61 74 20 73 61 6d |> .>> |That sam|
|00000c90| 65 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |e docume|ntation |
|00000ca0| 73 61 79 73 20 22 43 6c | 6f 73 69 6e 67 20 61 20 |says "Cl|osing a |
|00000cb0| 73 6f 63 6b 65 74 20 77 | 69 74 68 20 63 6c 6f 73 |socket w|ith clos|
|00000cc0| 65 73 6f 63 6b 65 74 28 | 29 20 61 6c 73 6f 0a 3e |esocket(|) also.>|
|00000cd0| 3e 20 20 63 61 6e 63 65 | 6c 73 20 57 53 41 41 73 |> cance|ls WSAAs|
|00000ce0| 79 6e 63 53 65 6c 65 63 | 74 28 29 20 6d 65 73 73 |yncSelec|t() mess|
|00000cf0| 61 67 65 20 73 65 6e 64 | 69 6e 67 22 20 28 70 2e |age send|ing" (p.|
|00000d00| 20 38 39 29 2e 20 20 49 | 27 76 65 20 61 6c 77 61 | 89). I|'ve alwa|
|00000d10| 79 73 20 66 65 6c 74 0a | 74 68 61 74 0a 3e 3e 20 |ys felt.|that.>> |
|00000d20| 20 6f 6e 63 65 20 63 6c | 6f 73 65 73 6f 63 6b 65 | once cl|osesocke|
|00000d30| 74 28 29 20 69 73 20 63 | 61 6c 6c 65 64 2c 20 74 |t() is c|alled, t|
|00000d40| 68 65 20 64 65 73 63 72 | 69 70 74 6f 72 20 69 73 |he descr|iptor is|
|00000d50| 20 69 6e 76 61 6c 69 64 | 2c 20 61 6e 64 20 61 20 | invalid|, and a |
|00000d60| 44 4c 4c 0a 3e 3e 20 20 | 73 68 6f 75 6c 64 6e 27 |DLL.>> |shouldn'|
|00000d70| 74 20 70 6f 73 74 20 20 | 6d 65 73 73 61 67 65 73 |t post |messages|
|00000d80| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 69 6e 76 61 | contain|ing inva|
|00000d90| 6c 69 64 20 64 65 73 63 | 72 69 70 74 6f 72 73 2e |lid desc|riptors.|
|00000da0| 0a 3e 0a 3e 43 6c 65 61 | 72 6c 79 20 74 68 65 6e |.>.>Clea|rly then|
|00000db0| 2c 20 74 68 65 20 70 6f | 72 74 69 6f 6e 73 20 77 |, the po|rtions w|
|00000dc0| 65 27 76 65 20 65 61 63 | 68 20 71 75 6f 74 65 64 |e've eac|h quoted|
|00000dd0| 20 63 6f 6e 74 72 61 64 | 69 63 74 20 65 61 63 68 | contrad|ict each|
|00000de0| 20 6f 74 68 65 72 2e 0a | 3e 0a 3e 3e 20 20 54 68 | other..|>.>> Th|
|00000df0| 65 20 46 44 5f 43 4c 4f | 53 45 20 77 6f 75 6c 64 |e FD_CLO|SE would|
|00000e00| 20 62 65 20 72 65 64 75 | 6e 64 61 6e 74 2c 20 61 | be redu|ndant, a|
|00000e10| 6e 79 77 61 79 2c 20 77 | 6f 75 6c 64 6e 27 74 20 |nyway, w|ouldn't |
|00000e20| 69 74 3f 20 20 49 74 20 | 77 61 73 20 74 68 65 0a |it? It |was the.|
|00000e30| 3e 3e 20 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |>> appl|ication |
|00000e40| 74 68 61 74 20 69 6e 69 | 74 69 61 74 65 64 20 74 |that ini|tiated t|
|00000e50| 68 65 20 63 6c 6f 73 65 | 2c 20 73 6f 20 69 74 20 |he close|, so it |
|00000e60| 73 68 6f 75 6c 64 20 61 | 6c 72 65 61 64 79 20 6b |should a|lready k|
|00000e70| 6e 6f 77 20 61 62 6f 75 | 74 0a 69 74 2c 0a 3e 3e |now abou|t.it,.>>|
|00000e80| 20 20 72 69 67 68 74 3f | 0a 3e 0a 3e 4e 6f 2c 20 | right?|.>.>No, |
|00000e90| 69 74 27 73 20 6e 6f 74 | 20 72 65 64 75 6e 64 61 |it's not| redunda|
|00000ea0| 6e 74 2e 20 20 43 61 6c | 6c 69 6e 67 20 63 6c 6f |nt. Cal|ling clo|
|00000eb0| 73 65 73 6f 63 6b 65 74 | 28 29 20 77 69 6c 6c 20 |sesocket|() will |
|00000ec0| 2a 73 65 6e 64 2a 20 74 | 68 65 20 46 49 4e 0a 3e |*send* t|he FIN.>|
|00000ed0| 61 6e 64 20 74 68 65 20 | 46 44 5f 43 4c 4f 53 45 |and the |FD_CLOSE|
|00000ee0| 20 69 73 20 70 6f 73 74 | 65 64 20 77 68 65 6e 20 | is post|ed when |
|00000ef0| 79 6f 75 20 2a 72 65 63 | 69 65 76 65 2a 20 74 68 |you *rec|ieve* th|
|00000f00| 65 20 46 49 4e 20 69 6e | 20 72 65 73 70 6f 6e 73 |e FIN in| respons|
|00000f10| 65 2e 0a 3e 0a 0a 53 65 | 6e 64 69 6e 67 20 74 68 |e..>..Se|nding th|
|00000f20| 65 20 46 49 4e 20 77 6f | 75 6c 64 20 70 75 74 20 |e FIN wo|uld put |
|00000f30| 74 68 65 20 63 6f 6e 6e | 65 63 74 69 6f 6e 20 69 |the conn|ection i|
|00000f40| 6e 20 46 49 4e 5f 57 41 | 49 54 20 73 74 61 74 65 |n FIN_WA|IT state|
|00000f50| 2c 20 73 6f 20 74 68 65 | 0a 46 44 5f 43 4c 4f 53 |, so the|.FD_CLOS|
|00000f60| 45 20 77 6f 75 6c 64 2c | 20 74 68 65 6f 72 65 74 |E would,| theoret|
|00000f70| 69 63 61 6c 6c 79 2c 20 | 62 65 20 70 6f 73 74 65 |ically, |be poste|
|00000f80| 64 20 69 6d 6d 65 64 69 | 61 74 65 6c 79 20 69 6e |d immedi|ately in|
|00000f90| 20 63 6c 6f 73 65 73 6f | 63 6b 65 74 28 29 2e 0a | closeso|cket()..|
|00000fa0| 53 6f 2c 20 77 68 65 6e | 20 74 68 65 20 61 70 70 |So, when| the app|
|00000fb0| 20 63 61 6c 6c 73 20 63 | 6c 6f 73 65 73 6f 63 6b | calls c|losesock|
|00000fc0| 65 74 2c 20 69 74 20 6b | 6e 6f 77 73 20 74 68 61 |et, it k|nows tha|
|00000fd0| 74 20 69 74 20 22 73 68 | 6f 75 6c 64 22 20 67 65 |t it "sh|ould" ge|
|00000fe0| 74 20 61 6e 0a 46 44 5f | 43 4c 4f 53 45 20 61 6e |t an.FD_|CLOSE an|
|00000ff0| 64 20 63 61 6e 20 61 63 | 74 20 61 63 63 6f 72 64 |d can ac|t accord|
|00001000| 69 6e 67 6c 79 20 28 6f | 72 20 70 6f 73 74 20 69 |ingly (o|r post i|
|00001010| 74 73 65 6c 66 20 74 68 | 65 20 46 44 5f 43 4c 4f |tself th|e FD_CLO|
|00001020| 53 45 2c 20 69 66 20 69 | 74 0a 72 65 61 6c 6c 79 |SE, if i|t.really|
|00001030| 20 77 61 6e 74 73 20 74 | 6f 20 67 6f 20 74 68 61 | wants t|o go tha|
|00001040| 74 20 72 6f 75 74 65 29 | 2e 0a 0a 2a 2a 2a 2a 2a |t route)|...*****|
|00001050| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001060| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001070| 2a 2a 2a 0a 42 72 75 63 | 65 20 41 20 42 61 63 6b |***.Bruc|e A Back|
|00001080| 6d 61 6e 20 28 42 72 75 | 63 65 40 46 72 6f 6e 74 |man (Bru|ce@Front|
|00001090| 69 65 72 54 65 63 68 2e | 43 4f 4d 29 0a 46 72 6f |ierTech.|COM).Fro|
|000010a0| 6e 74 69 65 72 20 54 65 | 63 68 6e 6f 6c 6f 67 69 |ntier Te|chnologi|
|000010b0| 65 73 20 43 6f 72 70 6f | 72 61 74 69 6f 6e 0a 31 |es Corpo|ration.1|
|000010c0| 30 32 30 31 20 4e 6f 72 | 74 68 20 50 6f 72 74 20 |0201 Nor|th Port |
|000010d0| 57 61 73 68 69 6e 67 74 | 6f 6e 20 52 6f 61 64 0a |Washingt|on Road.|
|000010e0| 4d 65 71 75 6f 6e 2c 20 | 20 57 49 20 20 35 33 30 |Mequon, | WI 530|
|000010f0| 39 32 0a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |92.*****|********|
|00001100| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001110| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0a 0a 46 72 6f |********|***..Fro|
|00001120| 6d 20 72 63 71 40 6d 61 | 69 6c 73 65 72 76 2d 44 |m rcq@ma|ilserv-D|
|00001130| 2e 66 74 70 2e 63 6f 6d | 20 4d 6f 6e 20 4d 61 79 |.ftp.com| Mon May|
|00001140| 20 20 32 20 31 30 3a 33 | 36 3a 33 39 20 31 39 39 | 2 10:3|6:39 199|
|00001150| 34 0a 52 65 63 65 69 76 | 65 64 3a 20 66 72 6f 6d |4.Receiv|ed: from|
|00001160| 20 66 74 70 2e 63 6f 6d | 20 28 77 64 34 30 2e 66 | ftp.com| (wd40.f|
|00001170| 74 70 2e 63 6f 6d 29 20 | 62 79 20 53 75 6e 53 49 |tp.com) |by SunSI|
|00001180| 54 45 2e 55 6e 63 2e 45 | 44 55 20 28 35 2e 36 35 |TE.Unc.E|DU (5.65|
|00001190| 63 2b 49 44 41 2f 46 76 | 4b 2d 31 2e 30 37 29 20 |c+IDA/Fv|K-1.07) |
|000011a0| 77 69 74 68 20 53 4d 54 | 50 0a 20 20 20 20 20 20 |with SMT|P. |
|000011b0| 20 20 20 20 69 64 20 41 | 41 32 30 31 32 38 3b 20 | id A|A20128; |
|000011c0| 4d 6f 6e 2c 20 32 20 4d | 61 79 20 31 39 39 34 20 |Mon, 2 M|ay 1994 |
|000011d0| 31 34 3a 33 37 3a 35 34 | 20 2d 30 34 30 30 0a 52 |14:37:54| -0400.R|
|000011e0| 65 63 65 69 76 65 64 3a | 20 66 72 6f 6d 20 66 74 |eceived:| from ft|
|000011f0| 70 2e 63 6f 6d 20 62 79 | 20 66 74 70 2e 63 6f 6d |p.com by| ftp.com|
|00001200| 20 20 3b 20 4d 6f 6e 2c | 20 32 20 4d 61 79 20 31 | ; Mon,| 2 May 1|
|00001210| 39 39 34 20 31 34 3a 33 | 37 3a 35 32 20 2d 30 34 |994 14:3|7:52 -04|
|00001220| 30 30 0a 52 65 63 65 69 | 76 65 64 3a 20 66 72 6f |00.Recei|ved: fro|
|00001230| 6d 20 6d 61 69 6c 73 65 | 72 76 2d 44 2e 66 74 70 |m mailse|rv-D.ftp|
|00001240| 2e 63 6f 6d 20 62 79 20 | 66 74 70 2e 63 6f 6d 20 |.com by |ftp.com |
|00001250| 20 3b 20 4d 6f 6e 2c 20 | 32 20 4d 61 79 20 31 39 | ; Mon, |2 May 19|
|00001260| 39 34 20 31 34 3a 33 37 | 3a 35 32 20 2d 30 34 30 |94 14:37|:52 -040|
|00001270| 30 0a 52 65 63 65 69 76 | 65 64 3a 20 66 72 6f 6d |0.Receiv|ed: from|
|00001280| 20 72 63 71 2e 73 69 64 | 65 61 72 6d 2e 66 74 70 | rcq.sid|earm.ftp|
|00001290| 2e 63 6f 6d 20 62 79 20 | 6d 61 69 6c 73 65 72 76 |.com by |mailserv|
|000012a0| 2d 44 2e 66 74 70 2e 63 | 6f 6d 20 28 35 2e 30 2f |-D.ftp.c|om (5.0/|
|000012b0| 53 4d 49 2d 53 56 52 34 | 29 0a 09 69 64 20 41 41 |SMI-SVR4|)..id AA|
|000012c0| 32 34 37 38 36 3b 20 4d | 6f 6e 2c 20 32 20 4d 61 |24786; M|on, 2 Ma|
|000012d0| 79 20 39 34 20 31 34 3a | 33 36 3a 33 39 20 45 44 |y 94 14:|36:39 ED|
|000012e0| 54 0a 44 61 74 65 3a 20 | 4d 6f 6e 2c 20 32 20 4d |T.Date: |Mon, 2 M|
|000012f0| 61 79 20 39 34 20 31 34 | 3a 33 36 3a 33 39 20 45 |ay 94 14|:36:39 E|
|00001300| 44 54 0a 4d 65 73 73 61 | 67 65 2d 49 64 3a 20 3c |DT.Messa|ge-Id: <|
|00001310| 39 34 30 35 30 32 31 38 | 33 36 2e 41 41 32 34 37 |94050218|36.AA247|
|00001320| 38 36 40 6d 61 69 6c 73 | 65 72 76 2d 44 2e 66 74 |86@mails|erv-D.ft|
|00001330| 70 2e 63 6f 6d 3e 0a 54 | 6f 3a 20 42 72 75 63 65 |p.com>.T|o: Bruce|
|00001340| 40 69 73 69 2e 46 72 6f | 6e 74 69 65 72 54 65 63 |@isi.Fro|ntierTec|
|00001350| 68 2e 43 4f 4d 0a 53 75 | 62 6a 65 63 74 3a 20 52 |h.COM.Su|bject: R|
|00001360| 65 3a 20 43 75 72 69 6f | 75 73 20 62 65 68 61 76 |e: Curio|us behav|
|00001370| 69 6f 75 72 20 66 72 6f | 6d 20 77 69 6e 73 6f 63 |iour fro|m winsoc|
|00001380| 6b 0a 46 72 6f 6d 3a 20 | 72 63 71 40 66 74 70 2e |k.From: |rcq@ftp.|
|00001390| 63 6f 6d 20 20 28 42 6f | 62 20 51 75 69 6e 6e 29 |com (Bo|b Quinn)|
|000013a0| 0a 52 65 70 6c 79 2d 54 | 6f 3a 20 72 63 71 40 66 |.Reply-T|o: rcq@f|
|000013b0| 74 70 2e 63 6f 6d 0a 43 | 63 3a 20 77 69 6e 73 6f |tp.com.C|c: winso|
|000013c0| 63 6b 2d 68 61 63 6b 65 | 72 73 40 73 75 6e 73 69 |ck-hacke|rs@sunsi|
|000013d0| 74 65 2e 75 6e 63 2e 65 | 64 75 0a 53 65 6e 64 65 |te.unc.e|du.Sende|
|000013e0| 72 3a 20 72 63 71 40 6d | 61 69 6c 73 65 72 76 2d |r: rcq@m|ailserv-|
|000013f0| 44 2e 66 74 70 2e 63 6f | 6d 0a 52 65 70 6f 73 69 |D.ftp.co|m.Reposi|
|00001400| 74 6f 72 79 3a 20 6d 61 | 69 6c 73 65 72 76 2d 44 |tory: ma|ilserv-D|
|00001410| 2e 66 74 70 2e 63 6f 6d | 2c 20 5b 6d 65 73 73 61 |.ftp.com|, [messa|
|00001420| 67 65 20 61 63 63 65 70 | 74 65 64 20 61 74 20 4d |ge accep|ted at M|
|00001430| 6f 6e 20 4d 61 79 20 20 | 32 20 31 34 3a 33 36 3a |on May |2 14:36:|
|00001440| 33 31 20 31 39 39 34 5d | 0a 4f 72 69 67 69 6e 61 |31 1994]|.Origina|
|00001450| 74 69 6e 67 2d 43 6c 69 | 65 6e 74 3a 20 73 69 64 |ting-Cli|ent: sid|
|00001460| 65 61 72 6d 2e 66 74 70 | 2e 63 6f 6d 0a 43 6f 6e |earm.ftp|.com.Con|
|00001470| 74 65 6e 74 2d 4c 65 6e | 67 74 68 3a 20 32 31 33 |tent-Len|gth: 213|
|00001480| 39 0a 0a 3e 20 20 3e 3e | 20 20 3e 2e 2e 2e 20 61 |9..> >>| >... a|
|00001490| 73 73 75 6d 69 6e 67 20 | 79 6f 75 72 20 61 70 70 |ssuming |your app|
|000014a0| 6c 69 63 61 74 69 6f 6e | 20 69 6e 69 74 69 61 74 |lication| initiat|
|000014b0| 65 64 20 74 68 65 20 63 | 6c 6f 73 65 20 28 63 61 |ed the c|lose (ca|
|000014c0| 6c 6c 65 64 0a 3e 20 20 | 3e 3e 20 20 3e 63 6c 6f |lled.> |>> >clo|
|000014d0| 73 65 73 6f 63 6b 65 74 | 28 29 20 66 69 72 73 74 |sesocket|() first|
|000014e0| 29 2c 20 74 68 65 6e 20 | 79 6f 75 27 64 20 62 65 |), then |you'd be|
|000014f0| 20 69 6e 20 46 49 4e 5f | 57 41 49 54 2e 20 20 4f | in FIN_|WAIT. O|
|00001500| 6e 20 70 61 67 65 20 39 | 31 20 69 6e 20 74 68 65 |n page 9|1 in the|
|00001510| 0a 3e 20 20 3e 3e 20 20 | 3e 64 6f 63 75 6d 65 6e |.> >> |>documen|
|00001520| 74 61 74 69 6f 6e 20 66 | 6f 72 20 57 53 41 41 73 |tation f|or WSAAs|
|00001530| 79 6e 63 53 65 6c 65 63 | 74 28 29 20 74 68 65 20 |yncSelec|t() the |
|00001540| 73 70 65 63 20 73 61 79 | 73 20 22 54 68 65 20 46 |spec say|s "The F|
|00001550| 44 5f 43 4c 4f 53 45 20 | 69 73 0a 3e 20 20 3e 3e |D_CLOSE |is.> >>|
|00001560| 20 20 3e 70 6f 73 74 65 | 64 20 77 68 65 6e 20 74 | >poste|d when t|
|00001570| 68 65 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 20 67 6f |he conne|ction go|
|00001580| 65 73 20 69 6e 74 6f 20 | 46 49 4e 5f 57 41 49 54 |es into |FIN_WAIT|
|00001590| 20 6f 72 20 43 4c 4f 53 | 45 5f 57 41 49 54 20 73 | or CLOS|E_WAIT s|
|000015a0| 74 61 74 65 73 2e 22 0a | 3e 20 20 3e 3e 20 20 0a |tates.".|> >> .|
|000015b0| 3e 20 20 3e 3e 20 20 54 | 68 61 74 20 73 61 6d 65 |> >> T|hat same|
|000015c0| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 73 | documen|tation s|
|000015d0| 61 79 73 20 22 43 6c 6f | 73 69 6e 67 20 61 20 73 |ays "Clo|sing a s|
|000015e0| 6f 63 6b 65 74 20 77 69 | 74 68 20 63 6c 6f 73 65 |ocket wi|th close|
|000015f0| 73 6f 63 6b 65 74 28 29 | 20 61 6c 73 6f 0a 3e 20 |socket()| also.> |
|00001600| 20 3e 3e 20 20 63 61 6e | 63 65 6c 73 20 57 53 41 | >> can|cels WSA|
|00001610| 41 73 79 6e 63 53 65 6c | 65 63 74 28 29 20 6d 65 |AsyncSel|ect() me|
|00001620| 73 73 61 67 65 20 73 65 | 6e 64 69 6e 67 22 20 28 |ssage se|nding" (|
|00001630| 70 2e 20 38 39 29 2e 20 | 20 49 27 76 65 20 61 6c |p. 89). | I've al|
|00001640| 77 61 79 73 20 66 65 6c | 74 0a 3e 20 20 74 68 61 |ways fel|t.> tha|
|00001650| 74 0a 3e 20 20 3e 3e 20 | 20 6f 6e 63 65 20 63 6c |t.> >> | once cl|
|00001660| 6f 73 65 73 6f 63 6b 65 | 74 28 29 20 69 73 20 63 |osesocke|t() is c|
|00001670| 61 6c 6c 65 64 2c 20 74 | 68 65 20 64 65 73 63 72 |alled, t|he descr|
|00001680| 69 70 74 6f 72 20 69 73 | 20 69 6e 76 61 6c 69 64 |iptor is| invalid|
|00001690| 2c 20 61 6e 64 20 61 20 | 44 4c 4c 0a 3e 20 20 3e |, and a |DLL.> >|
|000016a0| 3e 20 20 73 68 6f 75 6c | 64 6e 27 74 20 70 6f 73 |> shoul|dn't pos|
|000016b0| 74 20 20 6d 65 73 73 61 | 67 65 73 20 63 6f 6e 74 |t messa|ges cont|
|000016c0| 61 69 6e 69 6e 67 20 69 | 6e 76 61 6c 69 64 20 64 |aining i|nvalid d|
|000016d0| 65 73 63 72 69 70 74 6f | 72 73 2e 0a 3e 20 20 3e |escripto|rs..> >|
|000016e0| 0a 3e 20 20 3e 43 6c 65 | 61 72 6c 79 20 74 68 65 |.> >Cle|arly the|
|000016f0| 6e 2c 20 74 68 65 20 70 | 6f 72 74 69 6f 6e 73 20 |n, the p|ortions |
|00001700| 77 65 27 76 65 20 65 61 | 63 68 20 71 75 6f 74 65 |we've ea|ch quote|
|00001710| 64 20 63 6f 6e 74 72 61 | 64 69 63 74 20 65 61 63 |d contra|dict eac|
|00001720| 68 20 6f 74 68 65 72 2e | 0a 3e 20 20 3e 0a 3e 20 |h other.|.> >.> |
|00001730| 20 3e 3e 20 20 54 68 65 | 20 46 44 5f 43 4c 4f 53 | >> The| FD_CLOS|
|00001740| 45 20 77 6f 75 6c 64 20 | 62 65 20 72 65 64 75 6e |E would |be redun|
|00001750| 64 61 6e 74 2c 20 61 6e | 79 77 61 79 2c 20 77 6f |dant, an|yway, wo|
|00001760| 75 6c 64 6e 27 74 20 69 | 74 3f 20 20 49 74 20 77 |uldn't i|t? It w|
|00001770| 61 73 20 74 68 65 0a 3e | 20 20 3e 3e 20 20 61 70 |as the.>| >> ap|
|00001780| 70 6c 69 63 61 74 69 6f | 6e 20 74 68 61 74 20 69 |plicatio|n that i|
|00001790| 6e 69 74 69 61 74 65 64 | 20 74 68 65 20 63 6c 6f |nitiated| the clo|
|000017a0| 73 65 2c 20 73 6f 20 69 | 74 20 73 68 6f 75 6c 64 |se, so i|t should|
|000017b0| 20 61 6c 72 65 61 64 79 | 20 6b 6e 6f 77 20 61 62 | already| know ab|
|000017c0| 6f 75 74 0a 3e 20 20 69 | 74 2c 0a 3e 20 20 3e 3e |out.> i|t,.> >>|
|000017d0| 20 20 72 69 67 68 74 3f | 0a 3e 20 20 3e 0a 3e 20 | right?|.> >.> |
|000017e0| 20 3e 4e 6f 2c 20 69 74 | 27 73 20 6e 6f 74 20 72 | >No, it|'s not r|
|000017f0| 65 64 75 6e 64 61 6e 74 | 2e 20 20 43 61 6c 6c 69 |edundant|. Calli|
|00001800| 6e 67 20 63 6c 6f 73 65 | 73 6f 63 6b 65 74 28 29 |ng close|socket()|
|00001810| 20 77 69 6c 6c 20 2a 73 | 65 6e 64 2a 20 74 68 65 | will *s|end* the|
|00001820| 20 46 49 4e 0a 3e 20 20 | 3e 61 6e 64 20 74 68 65 | FIN.> |>and the|
|00001830| 20 46 44 5f 43 4c 4f 53 | 45 20 69 73 20 70 6f 73 | FD_CLOS|E is pos|
|00001840| 74 65 64 20 77 68 65 6e | 20 79 6f 75 20 2a 72 65 |ted when| you *re|
|00001850| 63 69 65 76 65 2a 20 74 | 68 65 20 46 49 4e 20 69 |cieve* t|he FIN i|
|00001860| 6e 20 72 65 73 70 6f 6e | 73 65 2e 0a 3e 20 20 3e |n respon|se..> >|
|00001870| 0a 3e 20 20 0a 3e 20 20 | 53 65 6e 64 69 6e 67 20 |.> .> |Sending |
|00001880| 74 68 65 20 46 49 4e 20 | 77 6f 75 6c 64 20 70 75 |the FIN |would pu|
|00001890| 74 20 74 68 65 20 63 6f | 6e 6e 65 63 74 69 6f 6e |t the co|nnection|
|000018a0| 20 69 6e 20 46 49 4e 5f | 57 41 49 54 20 73 74 61 | in FIN_|WAIT sta|
|000018b0| 74 65 2c 20 73 6f 20 74 | 68 65 0a 3e 20 20 46 44 |te, so t|he.> FD|
|000018c0| 5f 43 4c 4f 53 45 20 77 | 6f 75 6c 64 2c 20 74 68 |_CLOSE w|ould, th|
|000018d0| 65 6f 72 65 74 69 63 61 | 6c 6c 79 2c 20 62 65 20 |eoretica|lly, be |
|000018e0| 70 6f 73 74 65 64 20 69 | 6d 6d 65 64 69 61 74 65 |posted i|mmediate|
|000018f0| 6c 79 20 69 6e 20 63 6c | 6f 73 65 73 6f 63 6b 65 |ly in cl|osesocke|
|00001900| 74 28 29 2e 0a 3e 20 20 | 53 6f 2c 20 77 68 65 6e |t()..> |So, when|
|00001910| 20 74 68 65 20 61 70 70 | 20 63 61 6c 6c 73 20 63 | the app| calls c|
|00001920| 6c 6f 73 65 73 6f 63 6b | 65 74 2c 20 69 74 20 6b |losesock|et, it k|
|00001930| 6e 6f 77 73 20 74 68 61 | 74 20 69 74 20 22 73 68 |nows tha|t it "sh|
|00001940| 6f 75 6c 64 22 20 67 65 | 74 20 61 6e 0a 3e 20 20 |ould" ge|t an.> |
|00001950| 46 44 5f 43 4c 4f 53 45 | 20 61 6e 64 20 63 61 6e |FD_CLOSE| and can|
|00001960| 20 61 63 74 20 61 63 63 | 6f 72 64 69 6e 67 6c 79 | act acc|ordingly|
|00001970| 20 28 6f 72 20 70 6f 73 | 74 20 69 74 73 65 6c 66 | (or pos|t itself|
|00001980| 20 74 68 65 20 46 44 5f | 43 4c 4f 53 45 2c 20 69 | the FD_|CLOSE, i|
|00001990| 66 20 69 74 0a 3e 20 20 | 72 65 61 6c 6c 79 20 77 |f it.> |really w|
|000019a0| 61 6e 74 73 20 74 6f 20 | 67 6f 20 74 68 61 74 20 |ants to |go that |
|000019b0| 72 6f 75 74 65 29 2e 0a | 0a 4d 79 20 65 72 72 6f |route)..|.My erro|
|000019c0| 72 2c 20 79 6f 75 20 61 | 72 65 20 72 69 67 68 74 |r, you a|re right|
|000019d0| 2e 20 20 4e 6f 77 20 49 | 20 72 65 61 6c 69 7a 65 |. Now I| realize|
|000019e0| 20 68 6f 77 20 74 6f 74 | 61 6c 6c 79 20 75 73 65 | how tot|ally use|
|000019f0| 6c 65 73 73 20 46 44 5f | 43 4c 4f 53 45 0a 69 73 |less FD_|CLOSE.is|
|00001a00| 20 66 6f 72 20 73 6f 63 | 6b 65 74 73 20 74 68 61 | for soc|kets tha|
|00001a10| 74 20 61 72 65 20 69 6e | 69 74 69 61 74 69 6e 67 |t are in|itiating|
|00001a20| 20 74 68 65 20 63 6c 6f | 73 65 2e 0a 0a 57 61 74 | the clo|se...Wat|
|00001a30| 65 72 20 75 6e 64 65 72 | 20 74 68 65 20 62 72 69 |er under| the bri|
|00001a40| 64 67 65 20 61 74 20 74 | 68 69 73 20 70 6f 69 6e |dge at t|his poin|
|00001a50| 74 2c 20 62 75 74 20 74 | 6f 20 62 65 20 63 6f 6e |t, but t|o be con|
|00001a60| 73 69 73 74 65 6e 74 2c | 20 74 68 65 0a 77 61 79 |sistent,| the.way|
|00001a70| 20 69 74 20 2a 73 68 6f | 75 6c 64 2a 20 68 61 76 | it *sho|uld* hav|
|00001a80| 65 20 77 6f 72 6b 65 64 | 20 69 73 20 79 6f 75 27 |e worked| is you'|
|00001a90| 64 20 67 65 74 20 46 44 | 5f 43 4c 4f 53 45 20 77 |d get FD|_CLOSE w|
|00001aa0| 68 65 6e 20 69 74 20 67 | 6f 65 73 0a 69 6e 74 6f |hen it g|oes.into|
|00001ab0| 20 54 49 4d 45 5f 57 41 | 49 54 20 6e 6f 74 20 43 | TIME_WA|IT not C|
|00001ac0| 4c 4f 53 45 5f 57 41 49 | 54 20 28 69 6e 20 6f 74 |LOSE_WAI|T (in ot|
|00001ad0| 68 65 72 20 77 6f 72 64 | 73 20 77 68 65 6e 20 69 |her word|s when i|
|00001ae0| 74 20 2a 72 65 63 65 69 | 76 65 73 2a 20 61 0a 46 |t *recei|ves* a.F|
|00001af0| 49 4e 2c 20 6e 6f 74 20 | 77 68 65 6e 20 69 74 20 |IN, not |when it |
|00001b00| 2a 73 65 6e 64 73 2a 20 | 74 68 65 20 46 49 4e 29 |*sends* |the FIN)|
|00001b10| 2e 20 20 54 68 69 73 20 | 77 61 79 20 69 74 20 77 |. This |way it w|
|00001b20| 6f 75 6c 64 20 62 65 20 | 73 79 6d 6d 65 74 72 69 |ould be |symmetri|
|00001b30| 63 61 6c 0a 77 69 74 68 | 20 74 68 65 20 6f 74 68 |cal.with| the oth|
|00001b40| 65 72 20 63 61 73 65 2c | 20 77 68 65 6e 20 61 20 |er case,| when a |
|00001b50| 63 6f 6e 6e 65 63 74 65 | 64 20 73 6f 63 6b 65 74 |connecte|d socket|
|00001b60| 20 65 6e 74 65 72 73 20 | 43 4c 4f 53 45 5f 57 41 | enters |CLOSE_WA|
|00001b70| 49 54 20 75 70 6f 6e 0a | 72 65 63 65 69 70 74 20 |IT upon.|receipt |
|00001b80| 6f 66 20 61 20 46 49 4e | 2e 20 20 54 68 69 73 20 |of a FIN|. This |
|00001b90| 77 61 79 20 69 74 20 77 | 6f 75 6c 64 20 62 65 20 |way it w|ould be |
|00001ba0| 75 73 65 66 75 6c 2c 20 | 74 6f 6f 2e 0a 0a 53 6f |useful, |too...So|
|00001bb0| 2c 20 69 6e 20 74 68 65 | 20 66 69 6e 61 6c 20 61 |, in the| final a|
|00001bc0| 6e 61 6c 79 73 69 73 20 | 6f 6e 20 61 20 6e 6f 6e |nalysis |on a non|
|00001bd0| 2d 62 6c 6f 63 6b 69 6e | 67 20 63 6c 6f 73 65 20 |-blockin|g close |
|00001be0| 74 68 65 72 65 27 73 20 | 6e 6f 20 77 61 79 0a 66 |there's |no way.f|
|00001bf0| 6f 72 20 79 6f 75 20 74 | 6f 20 6b 6e 6f 77 20 69 |or you t|o know i|
|00001c00| 66 20 79 6f 75 20 63 6f | 6d 70 6c 65 74 65 64 20 |f you co|mpleted |
|00001c10| 61 20 67 72 61 63 65 66 | 75 6c 6c 79 20 6f 72 20 |a gracef|ully or |
|00001c20| 6e 6f 74 2e 20 20 44 6f | 65 73 20 74 68 69 73 0a |not. Do|es this.|
|00001c30| 73 6f 75 6e 64 20 62 72 | 6f 6b 65 6e 20 74 6f 20 |sound br|oken to |
|00001c40| 61 6e 79 6f 6e 65 20 65 | 6c 73 65 20 62 75 74 20 |anyone e|lse but |
|00001c50| 6d 65 3f 0a 2d 2d 0a 20 | 42 6f 62 20 51 75 69 6e |me?.--. |Bob Quin|
|00001c60| 6e 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n | |
|00001c70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 72 63 | | rc|
|00001c90| 71 40 66 74 70 2e 63 6f | 6d 0a 20 46 54 50 20 53 |q@ftp.co|m. FTP S|
|00001ca0| 6f 66 74 77 61 72 65 2c | 20 49 6e 63 2e 20 20 20 |oftware,| Inc. |
|00001cb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 4e 6f 2e | | No.|
|00001cd0| 20 41 6e 64 6f 76 65 72 | 2c 20 4d 41 0a 0a 46 72 | Andover|, MA..Fr|
|00001ce0| 6f 6d 20 77 69 6c 6c 69 | 61 6d 40 73 79 62 61 73 |om willi|am@sybas|
|00001cf0| 65 2e 63 6f 6d 20 4d 6f | 6e 20 4d 61 79 20 20 32 |e.com Mo|n May 2|
|00001d00| 20 30 35 3a 30 30 3a 35 | 36 20 31 39 39 34 0a 52 | 05:00:5|6 1994.R|
|00001d10| 65 63 65 69 76 65 64 3a | 20 66 72 6f 6d 20 68 61 |eceived:| from ha|
|00001d20| 6c 6f 6e 2e 73 79 62 61 | 73 65 2e 63 6f 6d 20 62 |lon.syba|se.com b|
|00001d30| 79 20 53 75 6e 53 49 54 | 45 2e 55 6e 63 2e 45 44 |y SunSIT|E.Unc.ED|
|00001d40| 55 20 28 35 2e 36 35 63 | 2b 49 44 41 2f 46 76 4b |U (5.65c|+IDA/FvK|
|00001d50| 2d 31 2e 30 37 29 20 77 | 69 74 68 20 53 4d 54 50 |-1.07) w|ith SMTP|
|00001d60| 0a 20 20 20 20 20 20 20 | 20 20 20 69 64 20 41 41 |. | id AA|
|00001d70| 32 34 35 37 30 3b 20 4d | 6f 6e 2c 20 32 20 4d 61 |24570; M|on, 2 Ma|
|00001d80| 79 20 31 39 39 34 20 31 | 35 3a 30 30 3a 33 38 20 |y 1994 1|5:00:38 |
|00001d90| 2d 30 34 30 30 0a 52 65 | 63 65 69 76 65 64 3a 20 |-0400.Re|ceived: |
|00001da0| 66 72 6f 6d 20 73 79 62 | 61 73 65 2e 63 6f 6d 20 |from syb|ase.com |
|00001db0| 28 73 79 62 67 61 74 65 | 2e 73 79 62 61 73 65 2e |(sybgate|.sybase.|
|00001dc0| 63 6f 6d 29 20 62 79 20 | 68 61 6c 6f 6e 2e 73 79 |com) by |halon.sy|
|00001dd0| 62 61 73 65 2e 63 6f 6d | 20 28 35 2e 30 2f 53 4d |base.com| (5.0/SM|
|00001de0| 49 2d 53 56 52 34 2f 53 | 79 62 46 57 34 2e 30 29 |I-SVR4/S|ybFW4.0)|
|00001df0| 0a 09 69 64 20 41 41 31 | 30 32 30 35 3b 20 4d 6f |..id AA1|0205; Mo|
|00001e00| 6e 2c 20 32 20 4d 61 79 | 20 31 39 39 34 20 31 32 |n, 2 May| 1994 12|
|00001e10| 3a 30 33 3a 32 37 20 2b | 30 38 30 30 0a 52 65 63 |:03:27 +|0800.Rec|
|00001e20| 65 69 76 65 64 3a 20 66 | 72 6f 6d 20 6d 65 72 63 |eived: f|rom merc|
|00001e30| 75 72 79 2e 73 79 62 67 | 61 74 65 2e 73 79 62 61 |ury.sybg|ate.syba|
|00001e40| 73 65 2e 63 6f 6d 20 28 | 6d 65 72 63 75 72 79 2d |se.com (|mercury-|
|00001e50| 31 29 20 62 79 20 73 79 | 62 61 73 65 2e 63 6f 6d |1) by sy|base.com|
|00001e60| 20 28 34 2e 31 2f 53 4d | 49 2d 34 2e 31 2f 53 79 | (4.1/SM|I-4.1/Sy|
|00001e70| 62 48 33 2e 33 29 0a 09 | 69 64 20 41 41 31 31 32 |bH3.3)..|id AA112|
|00001e80| 34 38 3b 20 4d 6f 6e 2c | 20 32 20 4d 61 79 20 39 |48; Mon,| 2 May 9|
|00001e90| 34 20 31 32 3a 30 30 3a | 33 33 20 50 44 54 0a 52 |4 12:00:|33 PDT.R|
|00001ea0| 65 63 65 69 76 65 64 3a | 20 62 79 20 6d 65 72 63 |eceived:| by merc|
|00001eb0| 75 72 79 2e 73 79 62 67 | 61 74 65 2e 73 79 62 61 |ury.sybg|ate.syba|
|00001ec0| 73 65 2e 63 6f 6d 20 28 | 34 2e 31 2f 53 4d 49 2d |se.com (|4.1/SMI-|
|00001ed0| 34 2e 31 2f 53 79 62 45 | 43 33 2e 32 29 0a 09 69 |4.1/SybE|C3.2)..i|
|00001ee0| 64 20 41 41 32 35 37 32 | 33 3b 20 4d 6f 6e 2c 20 |d AA2572|3; Mon, |
|00001ef0| 32 20 4d 61 79 20 39 34 | 20 31 32 3a 30 30 3a 35 |2 May 94| 12:00:5|
|00001f00| 36 20 50 44 54 0a 46 72 | 6f 6d 3a 20 77 69 6c 6c |6 PDT.Fr|om: will|
|00001f10| 69 61 6d 40 73 79 62 61 | 73 65 2e 63 6f 6d 20 28 |iam@syba|se.com (|
|00001f20| 57 69 6c 6c 69 61 6d 20 | 57 6f 6e 67 29 0a 4d 65 |William |Wong).Me|
|00001f30| 73 73 61 67 65 2d 49 64 | 3a 20 3c 39 34 30 35 30 |ssage-Id|: <94050|
|00001f40| 32 31 39 30 30 2e 41 41 | 32 35 37 32 33 40 6d 65 |21900.AA|25723@me|
|00001f50| 72 63 75 72 79 2e 73 79 | 62 67 61 74 65 2e 73 79 |rcury.sy|bgate.sy|
|00001f60| 62 61 73 65 2e 63 6f 6d | 3e 0a 53 75 62 6a 65 63 |base.com|>.Subjec|
|00001f70| 74 3a 20 52 65 3a 20 57 | 53 41 53 74 61 72 74 75 |t: Re: W|SAStartu|
|00001f80| 70 28 29 20 71 75 65 73 | 74 69 6f 6e 0a 54 6f 3a |p() ques|tion.To:|
|00001f90| 20 77 69 6e 73 6f 63 6b | 2d 68 61 63 6b 65 72 73 | winsock|-hackers|
|00001fa0| 40 53 75 6e 53 49 54 45 | 2e 55 6e 63 2e 45 44 55 |@SunSITE|.Unc.EDU|
|00001fb0| 0a 44 61 74 65 3a 20 4d | 6f 6e 2c 20 32 20 4d 61 |.Date: M|on, 2 Ma|
|00001fc0| 79 20 39 34 20 31 32 3a | 30 30 3a 35 36 20 50 44 |y 94 12:|00:56 PD|
|00001fd0| 54 0a 49 6e 2d 52 65 70 | 6c 79 2d 54 6f 3a 20 3c |T.In-Rep|ly-To: <|
|00001fe0| 39 34 30 34 32 31 31 35 | 30 32 2e 41 41 30 31 35 |94042115|02.AA015|
|00001ff0| 30 32 40 4d 49 54 2e 45 | 44 55 3e 3b 20 66 72 6f |02@MIT.E|DU>; fro|
|00002000| 6d 20 22 77 69 6e 73 6f | 63 6b 2d 68 61 63 6b 65 |m "winso|ck-hacke|
|00002010| 72 73 40 53 75 6e 53 49 | 54 45 2e 55 6e 63 2e 45 |rs@SunSI|TE.Unc.E|
|00002020| 44 55 22 20 61 74 20 41 | 70 72 20 33 30 2c 20 39 |DU" at A|pr 30, 9|
|00002030| 34 20 31 3a 31 38 20 70 | 6d 0a 58 2d 4d 61 69 6c |4 1:18 p|m.X-Mail|
|00002040| 65 72 3a 20 45 4c 4d 20 | 5b 76 65 72 73 69 6f 6e |er: ELM |[version|
|00002050| 20 32 2e 33 20 50 4c 30 | 5d 0a 43 6f 6e 74 65 6e | 2.3 PL0|].Conten|
|00002060| 74 2d 4c 65 6e 67 74 68 | 3a 20 31 31 34 33 0a 0a |t-Length|: 1143..|
|00002070| 3e 20 0a 3e 20 53 75 70 | 70 6f 73 65 20 49 20 68 |> .> Sup|pose I h|
|00002080| 61 76 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ave the |followin|
|00002090| 67 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 73 74 |g applic|ation st|
|000020a0| 72 75 63 74 75 72 65 3a | 0a 3e 20 0a 3e 20 0a 3e |ructure:|.> .> .>|
|000020b0| 20 0a 3e 20 09 09 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | .> ..--|--------|
|000020c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0a 3e 20 09 09 |--------|---.> ..|
|000020d0| 20 20 20 20 6d 79 2e 65 | 78 65 0a 3e 20 09 09 2d | my.e|xe.> ..-|
|000020e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000020f0| 2d 2d 2d 2d 0a 3e 20 09 | 09 7c 09 09 7c 0a 3e 20 |----.> .|.|..|.> |
|00002100| 09 09 7c 09 09 7c 0a 3e | 20 09 09 7c 09 09 7c 0a |..|..|.>| ..|..|.|
|00002110| 3e 20 09 09 5e 09 09 5e | 0a 3e 20 09 2d 2d 2d 2d |> ..^..^|.> .----|
|00002120| 2d 2d 2d 2d 2d 2d 2d 2d | 09 20 20 20 2d 2d 2d 2d |--------|. ----|
|00002130| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0a 3e 20 09 61 |--------|---.> .a|
|00002140| 75 74 68 2e 64 6c 6c 09 | 09 67 65 6e 2e 64 6c 6c |uth.dll.|.gen.dll|
|00002150| 0a 3e 20 09 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.> .----|--------|
|00002160| 09 20 20 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |. ----|--------|
|00002170| 2d 2d 2d 0a 3e 20 09 09 | 7c 09 09 7c 0a 3e 20 09 |---.> ..||..|.> .|
|00002180| 09 7c 09 09 7c 0a 3e 20 | 09 09 7c 09 09 7c 0a 3e |.|..|.> |..|..|.>|
|00002190| 20 09 09 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | ..-----|--------|
|000021a0| 2d 2d 2d 2d 0a 3e 20 09 | 09 20 20 20 77 69 6e 73 |----.> .|. wins|
|000021b0| 6f 63 6b 2e 64 6c 6c 0a | 3e 20 09 09 2d 2d 2d 2d |ock.dll.|> ..----|
|000021c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 3e 20 |--------|-----.> |
|000021d0| 0a 3e 20 0a 3e 20 53 68 | 6f 75 6c 64 20 49 20 63 |.> .> Sh|ould I c|
|000021e0| 61 6c 6c 20 57 53 41 53 | 74 61 72 74 75 70 28 29 |all WSAS|tartup()|
|000021f0| 20 69 6e 20 6d 79 2e 65 | 78 65 20 61 6e 64 20 6e | in my.e|xe and n|
|00002200| 6f 74 20 69 6e 20 74 68 | 65 20 6f 74 68 65 72 20 |ot in th|e other |
|00002210| 74 77 6f 20 44 4c 4c 73 | 20 6f 72 20 0a 3e 20 73 |two DLLs| or .> s|
|00002220| 68 6f 75 6c 64 20 49 20 | 63 61 6c 6c 20 69 74 20 |hould I |call it |
|00002230| 69 6e 20 61 75 74 68 2e | 64 6c 6c 20 61 6e 64 20 |in auth.|dll and |
|00002240| 67 65 6e 2e 64 6c 6c 3f | 20 43 61 6e 20 57 53 41 |gen.dll?| Can WSA|
|00002250| 43 6c 65 61 6e 75 70 28 | 29 20 62 65 20 63 61 6c |Cleanup(|) be cal|
|00002260| 6c 65 64 20 69 6e 20 61 | 20 0a 3e 20 77 65 70 28 |led in a| .> wep(|
|00002270| 29 3f 20 57 68 61 74 20 | 61 72 65 20 74 68 65 20 |)? What |are the |
|00002280| 61 64 76 61 6e 74 61 67 | 65 73 2f 64 69 73 61 76 |advantag|es/disav|
|00002290| 61 6e 74 61 67 65 73 3f | 0a 3e 20 0a 3e 20 0a 0a |antages?|.> .> ..|
|000022a0| 54 68 65 20 31 2e 31 20 | 73 70 65 63 20 63 6c 65 |The 1.1 |spec cle|
|000022b0| 61 72 6c 79 20 73 74 61 | 74 65 73 20 74 68 61 74 |arly sta|tes that|
|000022c0| 20 57 53 41 53 74 61 72 | 74 75 70 28 29 2f 57 53 | WSAStar|tup()/WS|
|000022d0| 41 43 6c 65 61 6e 75 70 | 28 29 20 61 72 65 20 75 |ACleanup|() are u|
|000022e0| 73 65 64 20 6f 6e 0a 70 | 65 72 2d 74 61 73 6b 20 |sed on.p|er-task |
|000022f0| 62 61 73 69 73 2e 20 20 | 59 6f 75 20 63 61 6e 20 |basis. |You can |
|00002300| 63 61 6c 6c 20 74 68 65 | 6d 20 61 6e 79 77 68 65 |call the|m anywhe|
|00002310| 72 65 20 69 6e 20 79 6f | 75 72 20 65 78 65 2f 64 |re in yo|ur exe/d|
|00002320| 6c 6c 73 20 61 73 20 6c | 6f 6e 67 20 61 73 0a 79 |lls as l|ong as.y|
|00002330| 6f 75 20 6b 6e 6f 77 20 | 77 68 69 63 68 20 74 61 |ou know |which ta|
|00002340| 73 6b 20 74 68 65 20 57 | 53 41 53 74 61 72 74 75 |sk the W|SAStartu|
|00002350| 70 28 29 2f 57 53 41 43 | 6c 65 61 6e 75 70 28 29 |p()/WSAC|leanup()|
|00002360| 20 61 72 65 20 72 65 66 | 65 72 72 69 6e 67 20 74 | are ref|erring t|
|00002370| 6f 2e 0a 0a 49 6e 20 79 | 6f 75 72 20 73 65 74 75 |o...In y|our setu|
|00002380| 70 2c 20 49 20 77 6f 75 | 6c 64 20 73 61 79 20 64 |p, I wou|ld say d|
|00002390| 6f 20 69 74 20 69 6e 20 | 6d 79 2e 65 78 65 20 77 |o it in |my.exe w|
|000023a0| 6f 75 6c 64 20 62 65 20 | 65 61 73 69 65 73 74 2e |ould be |easiest.|
|000023b0| 20 20 59 6f 75 20 63 61 | 6e 20 64 6f 0a 69 74 20 | You ca|n do.it |
|000023c0| 69 6e 20 79 6f 75 72 20 | 64 6c 6c 73 20 74 6f 6f |in your |dlls too|
|000023d0| 3b 20 68 6f 77 65 76 65 | 72 2c 20 79 6f 75 20 77 |; howeve|r, you w|
|000023e0| 69 6c 6c 20 68 61 76 65 | 20 74 6f 20 62 75 69 6c |ill have| to buil|
|000023f0| 64 20 61 20 74 61 73 6b | 20 74 61 62 6c 65 20 74 |d a task| table t|
|00002400| 6f 20 6b 65 65 70 20 0a | 74 72 61 63 6b 20 6f 66 |o keep .|track of|
|00002410| 20 74 68 65 20 64 65 74 | 61 69 6c 73 2e 0a 0a 4d | the det|ails...M|
|00002420| 61 79 20 49 20 73 75 67 | 67 65 73 74 20 79 6f 75 |ay I sug|gest you|
|00002430| 20 63 72 65 61 74 65 20 | 61 6e 6f 74 68 65 72 20 | create |another |
|00002440| 44 4c 4c 20 74 68 61 74 | 20 64 65 61 6c 73 20 77 |DLL that| deals w|
|00002450| 69 74 68 20 57 69 6e 73 | 6f 63 6b 20 65 78 63 6c |ith Wins|ock excl|
|00002460| 75 73 69 76 65 6c 79 0a | 61 6e 64 20 68 61 76 65 |usively.|and have|
|00002470| 20 79 6f 75 72 20 61 75 | 74 68 2e 64 6c 6c 20 61 | your au|th.dll a|
|00002480| 6e 64 20 67 65 6e 2e 64 | 6c 6c 20 69 6e 74 65 72 |nd gen.d|ll inter|
|00002490| 61 63 74 20 77 69 74 68 | 20 69 74 3f 20 20 49 74 |act with| it? It|
|000024a0| 20 6d 61 6b 65 73 20 74 | 68 69 6e 67 20 6d 75 63 | makes t|hing muc|
|000024b0| 68 20 0a 73 69 6d 70 6c | 65 72 20 61 6e 64 20 63 |h .simpl|er and c|
|000024c0| 6c 65 61 72 65 72 2e 0a | 0a 57 69 6c 6c 69 61 6d |learer..|.William|
|000024d0| 0a 2d 2d 0a 77 69 6c 6c | 69 61 6d 40 73 79 62 61 |.--.will|iam@syba|
|000024e0| 73 65 2e 63 6f 6d 0a 46 | 72 6f 6d 20 77 69 6c 6c |se.com.F|rom will|
|000024f0| 69 61 6d 40 73 79 62 61 | 73 65 2e 63 6f 6d 20 4d |iam@syba|se.com M|
|00002500| 6f 6e 20 4d 61 79 20 20 | 32 20 30 35 3a 31 34 3a |on May |2 05:14:|
|00002510| 31 33 20 31 39 39 34 0a | 52 65 63 65 69 76 65 64 |13 1994.|Received|
|00002520| 3a 20 66 72 6f 6d 20 68 | 61 6c 6f 6e 2e 73 79 62 |: from h|alon.syb|
|00002530| 61 73 65 2e 63 6f 6d 20 | 62 79 20 53 75 6e 53 49 |ase.com |by SunSI|
|00002540| 54 45 2e 55 6e 63 2e 45 | 44 55 20 28 35 2e 36 35 |TE.Unc.E|DU (5.65|
|00002550| 63 2b 49 44 41 2f 46 76 | 4b 2d 31 2e 30 37 29 20 |c+IDA/Fv|K-1.07) |
|00002560| 77 69 74 68 20 53 4d 54 | 50 0a 20 20 20 20 20 20 |with SMT|P. |
|00002570| 20 20 20 20 69 64 20 41 | 41 32 37 33 32 39 3b 20 | id A|A27329; |
|00002580| 4d 6f 6e 2c 20 32 20 4d | 61 79 20 31 39 39 34 20 |Mon, 2 M|ay 1994 |
|00002590| 31 35 3a 31 33 3a 35 32 | 20 2d 30 34 30 30 0a 52 |15:13:52| -0400.R|
|000025a0| 65 63 65 69 76 65 64 3a | 20 66 72 6f 6d 20 73 79 |eceived:| from sy|
|000025b0| 62 61 73 65 2e 63 6f 6d | 20 28 73 79 62 67 61 74 |base.com| (sybgat|
|000025c0| 65 2e 73 79 62 61 73 65 | 2e 63 6f 6d 29 20 62 79 |e.sybase|.com) by|
|000025d0| 20 68 61 6c 6f 6e 2e 73 | 79 62 61 73 65 2e 63 6f | halon.s|ybase.co|
|000025e0| 6d 20 28 35 2e 30 2f 53 | 4d 49 2d 53 56 52 34 2f |m (5.0/S|MI-SVR4/|
|000025f0| 53 79 62 46 57 34 2e 30 | 29 0a 09 69 64 20 41 41 |SybFW4.0|)..id AA|
|00002600| 31 30 37 34 31 3b 20 4d | 6f 6e 2c 20 32 20 4d 61 |10741; M|on, 2 Ma|
|00002610| 79 20 31 39 39 34 20 31 | 32 3a 31 36 3a 34 30 20 |y 1994 1|2:16:40 |
|00002620| 2b 30 38 30 30 0a 52 65 | 63 65 69 76 65 64 3a 20 |+0800.Re|ceived: |
|00002630| 66 72 6f 6d 20 6d 65 72 | 63 75 72 79 2e 73 79 62 |from mer|cury.syb|
|00002640| 67 61 74 65 2e 73 79 62 | 61 73 65 2e 63 6f 6d 20 |gate.syb|ase.com |
|00002650| 28 6d 65 72 63 75 72 79 | 2d 31 29 20 62 79 20 73 |(mercury|-1) by s|
|00002660| 79 62 61 73 65 2e 63 6f | 6d 20 28 34 2e 31 2f 53 |ybase.co|m (4.1/S|
|00002670| 4d 49 2d 34 2e 31 2f 53 | 79 62 48 33 2e 33 29 0a |MI-4.1/S|ybH3.3).|
|00002680| 09 69 64 20 41 41 31 32 | 32 32 37 3b 20 4d 6f 6e |.id AA12|227; Mon|
|00002690| 2c 20 32 20 4d 61 79 20 | 39 34 20 31 32 3a 31 33 |, 2 May |94 12:13|
|000026a0| 3a 34 39 20 50 44 54 0a | 52 65 63 65 69 76 65 64 |:49 PDT.|Received|
|000026b0| 3a 20 62 79 20 6d 65 72 | 63 75 72 79 2e 73 79 62 |: by mer|cury.syb|
|000026c0| 67 61 74 65 2e 73 79 62 | 61 73 65 2e 63 6f 6d 20 |gate.syb|ase.com |
|000026d0| 28 34 2e 31 2f 53 4d 49 | 2d 34 2e 31 2f 53 79 62 |(4.1/SMI|-4.1/Syb|
|000026e0| 45 43 33 2e 32 29 0a 09 | 69 64 20 41 41 32 37 30 |EC3.2)..|id AA270|
|000026f0| 32 32 3b 20 4d 6f 6e 2c | 20 32 20 4d 61 79 20 39 |22; Mon,| 2 May 9|
|00002700| 34 20 31 32 3a 31 34 3a | 31 34 20 50 44 54 0a 46 |4 12:14:|14 PDT.F|
|00002710| 72 6f 6d 3a 20 77 69 6c | 6c 69 61 6d 40 73 79 62 |rom: wil|liam@syb|
|00002720| 61 73 65 2e 63 6f 6d 20 | 28 57 69 6c 6c 69 61 6d |ase.com |(William|
|00002730| 20 57 6f 6e 67 29 0a 4d | 65 73 73 61 67 65 2d 49 | Wong).M|essage-I|
|00002740| 64 3a 20 3c 39 34 30 35 | 30 32 31 39 31 34 2e 41 |d: <9405|021914.A|
|00002750| 41 32 37 30 32 32 40 6d | 65 72 63 75 72 79 2e 73 |A27022@m|ercury.s|
|00002760| 79 62 67 61 74 65 2e 73 | 79 62 61 73 65 2e 63 6f |ybgate.s|ybase.co|
|00002770| 6d 3e 0a 53 75 62 6a 65 | 63 74 3a 20 52 65 3a 20 |m>.Subje|ct: Re: |
|00002780| 51 3a 20 48 6f 77 20 74 | 6f 20 63 6f 6e 6e 65 63 |Q: How t|o connec|
|00002790| 74 20 77 69 74 68 20 61 | 20 74 69 6d 65 6f 75 74 |t with a| timeout|
|000027a0| 20 3f 0a 54 6f 3a 20 77 | 69 6e 73 6f 63 6b 2d 68 | ?.To: w|insock-h|
|000027b0| 61 63 6b 65 72 73 40 53 | 75 6e 53 49 54 45 2e 55 |ackers@S|unSITE.U|
|000027c0| 6e 63 2e 45 44 55 20 28 | 52 6f 67 65 72 20 4b 72 |nc.EDU (|Roger Kr|
|000027d0| 69 65 73 29 0a 44 61 74 | 65 3a 20 4d 6f 6e 2c 20 |ies).Dat|e: Mon, |
|000027e0| 32 20 4d 61 79 20 39 34 | 20 31 32 3a 31 34 3a 31 |2 May 94| 12:14:1|
|000027f0| 33 20 50 44 54 0a 49 6e | 2d 52 65 70 6c 79 2d 54 |3 PDT.In|-Reply-T|
|00002800| 6f 3a 20 3c 31 39 39 34 | 30 34 31 38 31 30 35 36 |o: <1994|04181056|
|00002810| 2e 41 41 32 30 34 31 34 | 40 53 75 6e 53 49 54 45 |.AA20414|@SunSITE|
|00002820| 2e 55 6e 63 2e 45 44 55 | 3e 3b 20 66 72 6f 6d 20 |.Unc.EDU|>; from |
|00002830| 22 52 6f 67 65 72 20 4b | 72 69 65 73 22 20 61 74 |"Roger K|ries" at|
|00002840| 20 41 70 72 20 33 30 2c | 20 39 34 20 31 32 3a 30 | Apr 30,| 94 12:0|
|00002850| 37 20 70 6d 0a 58 2d 4d | 61 69 6c 65 72 3a 20 45 |7 pm.X-M|ailer: E|
|00002860| 4c 4d 20 5b 76 65 72 73 | 69 6f 6e 20 32 2e 33 20 |LM [vers|ion 2.3 |
|00002870| 50 4c 30 5d 0a 43 6f 6e | 74 65 6e 74 2d 4c 65 6e |PL0].Con|tent-Len|
|00002880| 67 74 68 3a 20 37 38 30 | 0a 0a 3e 20 0a 3e 20 20 |gth: 780|..> .> |
|00002890| 49 66 20 61 74 20 74 68 | 65 20 6d 6f 6d 65 6e 74 |If at th|e moment|
|000028a0| 20 6f 66 20 74 68 65 20 | 63 6f 6e 6e 65 63 74 20 | of the |connect |
|000028b0| 63 61 6c 6c 2c 20 74 68 | 65 20 72 65 6d 6f 74 65 |call, th|e remote|
|000028c0| 20 6d 61 63 68 69 6e 65 | 20 68 61 73 20 6e 6f 20 | machine| has no |
|000028d0| 73 6f 63 6b 65 74 0a 3e | 20 20 63 72 65 61 74 65 |socket.>| create|
|000028e0| 64 20 74 68 61 74 20 6c | 69 73 74 65 6e 73 20 74 |d that l|istens t|
|000028f0| 6f 20 74 68 65 20 73 70 | 65 63 69 66 69 65 64 20 |o the sp|ecified |
|00002900| 70 6f 72 74 2c 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |port, th|e follow|
|00002910| 69 6e 67 20 73 65 6c 65 | 63 74 28 29 20 63 61 6c |ing sele|ct() cal|
|00002920| 6c 0a 3e 20 20 77 69 6c | 6c 20 61 6c 77 61 79 73 |l.> wil|l always|
|00002930| 20 74 69 6d 65 6f 75 74 | 2c 20 65 76 65 6e 20 69 | timeout|, even i|
|00002940| 66 20 64 75 72 69 6e 67 | 20 74 68 65 20 74 69 6d |f during| the tim|
|00002950| 65 6f 75 74 20 69 6e 74 | 65 72 76 61 6c 20 61 20 |eout int|erval a |
|00002960| 70 72 6f 67 72 61 6d 20 | 69 73 0a 3e 20 20 73 74 |program |is.> st|
|00002970| 61 72 74 65 64 20 74 68 | 61 74 20 6c 69 73 74 65 |arted th|at liste|
|00002980| 6e 73 20 74 6f 20 74 68 | 65 20 70 6f 72 74 2e 20 |ns to th|e port. |
|00002990| 54 68 61 74 20 6d 65 61 | 6e 73 20 74 68 61 74 20 |That mea|ns that |
|000029a0| 69 6e 20 74 68 65 20 63 | 61 73 65 20 77 68 65 72 |in the c|ase wher|
|000029b0| 65 20 61 0a 3e 20 20 62 | 6c 6f 63 6b 69 6e 67 20 |e a.> b|locking |
|000029c0| 63 6f 6e 6e 65 63 74 20 | 63 61 6c 6c 20 77 6f 75 |connect |call wou|
|000029d0| 6c 64 20 72 65 74 75 72 | 6e 20 45 43 4f 4e 4e 52 |ld retur|n ECONNR|
|000029e0| 45 46 55 53 45 44 2c 20 | 61 20 6e 6f 6e 2d 62 6c |EFUSED, |a non-bl|
|000029f0| 6f 63 6b 69 6e 67 20 72 | 65 74 75 72 6e 73 0a 3e |ocking r|eturns.>|
|00002a00| 20 20 57 53 41 57 4f 55 | 4c 44 42 4c 4f 43 4b 2c | WSAWOU|LDBLOCK,|
|00002a10| 20 62 75 74 20 74 68 65 | 20 73 65 6c 65 63 74 20 | but the| select |
|00002a20| 63 61 6c 6c 20 61 6c 77 | 61 79 73 20 74 69 6d 65 |call alw|ays time|
|00002a30| 6f 75 74 73 2e 0a 3e 20 | 0a 3e 20 53 6f 20 68 6f |outs..> |.> So ho|
|00002a40| 77 20 63 61 6e 20 49 20 | 66 69 6e 64 20 6f 75 74 |w can I |find out|
|00002a50| 20 69 66 20 74 68 65 20 | 72 65 6d 6f 74 65 20 6d | if the |remote m|
|00002a60| 61 63 68 69 6e 65 20 69 | 73 20 6c 69 73 74 65 6e |achine i|s listen|
|00002a70| 69 6e 67 20 74 6f 20 61 | 20 73 70 65 63 69 66 69 |ing to a| specifi|
|00002a80| 63 0a 3e 20 54 43 50 20 | 70 6f 72 74 20 77 69 74 |c.> TCP |port wit|
|00002a90| 68 6f 75 74 20 62 6c 6f | 63 6b 69 6e 67 20 61 6e |hout blo|cking an|
|00002aa0| 64 20 69 6e 20 61 20 42 | 65 72 6b 6c 65 79 20 53 |d in a B|erkley S|
|00002ab0| 6f 63 6b 65 74 20 63 6f | 6d 70 61 74 69 62 6c 65 |ocket co|mpatible|
|00002ac0| 20 6d 61 6e 6e 65 72 3f | 0a 3e 20 0a 3e 20 41 6e | manner?|.> .> An|
|00002ad0| 79 20 73 75 67 67 65 73 | 74 69 6f 6e 73 20 61 72 |y sugges|tions ar|
|00002ae0| 65 20 77 65 6c 63 6f 6d | 65 2e 20 54 68 61 6e 78 |e welcom|e. Thanx|
|00002af0| 20 69 6e 20 61 64 76 61 | 6e 63 65 2e 0a 3e 20 0a | in adva|nce..> .|
|00002b00| 0a 59 6f 75 20 63 61 6e | 20 61 6c 77 61 79 73 20 |.You can| always |
|00002b10| 64 6f 20 79 6f 75 72 20 | 6f 77 6e 20 63 6c 6f 63 |do your |own cloc|
|00002b20| 6b 20 63 6f 75 6e 74 69 | 6e 67 2e 20 20 43 61 6c |k counti|ng. Cal|
|00002b30| 6c 20 73 65 6c 65 63 74 | 28 29 20 77 69 74 68 20 |l select|() with |
|00002b40| 7a 65 72 6f 20 74 69 6d | 65 6f 75 74 0a 69 6e 20 |zero tim|eout.in |
|00002b50| 61 20 6c 6f 6f 70 20 74 | 68 61 74 20 79 6f 75 20 |a loop t|hat you |
|00002b60| 64 6f 20 74 68 65 20 74 | 69 6d 65 6f 75 74 20 6c |do the t|imeout l|
|00002b70| 6f 67 69 63 2e 0a 0a 57 | 69 6c 6c 69 61 6d 0a 2d |ogic...W|illiam.-|
|00002b80| 2d 0a 77 69 6c 6c 69 61 | 6d 40 73 79 62 61 73 65 |-.willia|m@sybase|
|00002b90| 2e 63 6f 6d 0a 0a 46 72 | 6f 6d 20 77 69 6c 6c 69 |.com..Fr|om willi|
|00002ba0| 61 6d 40 73 79 62 61 73 | 65 2e 63 6f 6d 20 4d 6f |am@sybas|e.com Mo|
|00002bb0| 6e 20 4d 61 79 20 20 32 | 20 30 35 3a 30 36 3a 35 |n May 2| 05:06:5|
|00002bc0| 38 20 31 39 39 34 0a 52 | 65 63 65 69 76 65 64 3a |8 1994.R|eceived:|
|00002bd0| 20 66 72 6f 6d 20 68 61 | 6c 6f 6e 2e 73 79 62 61 | from ha|lon.syba|
|00002be0| 73 65 2e 63 6f 6d 20 62 | 79 20 53 75 6e 53 49 54 |se.com b|y SunSIT|
|00002bf0| 45 2e 55 6e 63 2e 45 44 | 55 20 28 35 2e 36 35 63 |E.Unc.ED|U (5.65c|
|00002c00| 2b 49 44 41 2f 46 76 4b | 2d 31 2e 30 37 29 20 77 |+IDA/FvK|-1.07) w|
|00002c10| 69 74 68 20 53 4d 54 50 | 0a 20 20 20 20 20 20 20 |ith SMTP|. |
|00002c20| 20 20 20 69 64 20 41 41 | 30 38 38 33 36 3b 20 4d | id AA|08836; M|
|00002c30| 6f 6e 2c 20 32 20 4d 61 | 79 20 31 39 39 34 20 31 |on, 2 Ma|y 1994 1|
|00002c40| 36 3a 30 39 3a 35 34 20 | 2d 30 34 30 30 0a 52 65 |6:09:54 |-0400.Re|
|00002c50| 63 65 69 76 65 64 3a 20 | 66 72 6f 6d 20 73 79 62 |ceived: |from syb|
|00002c60| 61 73 65 2e 63 6f 6d 20 | 28 73 79 62 67 61 74 65 |ase.com |(sybgate|
|00002c70| 2e 73 79 62 61 73 65 2e | 63 6f 6d 29 20 62 79 20 |.sybase.|com) by |
|00002c80| 68 61 6c 6f 6e 2e 73 79 | 62 61 73 65 2e 63 6f 6d |halon.sy|base.com|
|00002c90| 20 28 35 2e 30 2f 53 4d | 49 2d 53 56 52 34 2f 53 | (5.0/SM|I-SVR4/S|
|00002ca0| 79 62 46 57 34 2e 30 29 | 0a 09 69 64 20 41 41 31 |ybFW4.0)|..id AA1|
|00002cb0| 30 35 33 30 3b 20 4d 6f | 6e 2c 20 32 20 4d 61 79 |0530; Mo|n, 2 May|
|00002cc0| 20 31 39 39 34 20 31 32 | 3a 30 39 3a 32 36 20 2b | 1994 12|:09:26 +|
|00002cd0| 30 38 30 30 0a 52 65 63 | 65 69 76 65 64 3a 20 66 |0800.Rec|eived: f|
|00002ce0| 72 6f 6d 20 6d 65 72 63 | 75 72 79 2e 73 79 62 67 |rom merc|ury.sybg|
|00002cf0| 61 74 65 2e 73 79 62 61 | 73 65 2e 63 6f 6d 20 28 |ate.syba|se.com (|
|00002d00| 6d 65 72 63 75 72 79 2d | 31 29 20 62 79 20 73 79 |mercury-|1) by sy|
|00002d10| 62 61 73 65 2e 63 6f 6d | 20 28 34 2e 31 2f 53 4d |base.com| (4.1/SM|
|00002d20| 49 2d 34 2e 31 2f 53 79 | 62 48 33 2e 33 29 0a 09 |I-4.1/Sy|bH3.3)..|
|00002d30| 69 64 20 41 41 31 31 37 | 36 30 3b 20 4d 6f 6e 2c |id AA117|60; Mon,|
|00002d40| 20 32 20 4d 61 79 20 39 | 34 20 31 32 3a 30 36 3a | 2 May 9|4 12:06:|
|00002d50| 33 34 20 50 44 54 0a 52 | 65 63 65 69 76 65 64 3a |34 PDT.R|eceived:|
|00002d60| 20 62 79 20 6d 65 72 63 | 75 72 79 2e 73 79 62 67 | by merc|ury.sybg|
|00002d70| 61 74 65 2e 73 79 62 61 | 73 65 2e 63 6f 6d 20 28 |ate.syba|se.com (|
|00002d80| 34 2e 31 2f 53 4d 49 2d | 34 2e 31 2f 53 79 62 45 |4.1/SMI-|4.1/SybE|
|00002d90| 43 33 2e 32 29 0a 09 69 | 64 20 41 41 32 36 35 32 |C3.2)..i|d AA2652|
|00002da0| 31 3b 20 4d 6f 6e 2c 20 | 32 20 4d 61 79 20 39 34 |1; Mon, |2 May 94|
|00002db0| 20 31 32 3a 30 36 3a 35 | 38 20 50 44 54 0a 46 72 | 12:06:5|8 PDT.Fr|
|00002dc0| 6f 6d 3a 20 77 69 6c 6c | 69 61 6d 40 73 79 62 61 |om: will|iam@syba|
|00002dd0| 73 65 2e 63 6f 6d 20 28 | 57 69 6c 6c 69 61 6d 20 |se.com (|William |
|00002de0| 57 6f 6e 67 29 0a 4d 65 | 73 73 61 67 65 2d 49 64 |Wong).Me|ssage-Id|
|00002df0| 3a 20 3c 39 34 30 35 30 | 32 31 39 30 36 2e 41 41 |: <94050|21906.AA|
|00002e00| 32 36 35 32 31 40 6d 65 | 72 63 75 72 79 2e 73 79 |26521@me|rcury.sy|
|00002e10| 62 67 61 74 65 2e 73 79 | 62 61 73 65 2e 63 6f 6d |bgate.sy|base.com|
|00002e20| 3e 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 45 |>.Subjec|t: Re: E|
|00002e30| 73 73 65 6e 74 69 61 6c | 20 57 69 6e 73 6f 63 6b |ssential| Winsock|
|00002e40| 20 70 72 6f 62 6c 65 6d | 73 0a 54 6f 3a 20 77 69 | problem|s.To: wi|
|00002e50| 6e 73 6f 63 6b 2d 68 61 | 63 6b 65 72 73 40 53 75 |nsock-ha|ckers@Su|
|00002e60| 6e 53 49 54 45 2e 55 6e | 63 2e 45 44 55 20 28 46 |nSITE.Un|c.EDU (F|
|00002e70| 72 61 6e 6b 6c 69 6e 20 | 53 2e 20 43 68 65 6e 67 |ranklin |S. Cheng|
|00002e80| 29 0a 44 61 74 65 3a 20 | 4d 6f 6e 2c 20 32 20 4d |).Date: |Mon, 2 M|
|00002e90| 61 79 20 39 34 20 31 32 | 3a 30 36 3a 35 38 20 50 |ay 94 12|:06:58 P|
|00002ea0| 44 54 0a 49 6e 2d 52 65 | 70 6c 79 2d 54 6f 3a 20 |DT.In-Re|ply-To: |
|00002eb0| 3c 39 34 30 34 32 31 30 | 35 32 38 2e 41 41 30 39 |<9404210|528.AA09|
|00002ec0| 32 30 39 40 65 65 2e 74 | 61 6d 75 2e 65 64 75 3e |209@ee.t|amu.edu>|
|00002ed0| 3b 20 66 72 6f 6d 20 22 | 46 72 61 6e 6b 6c 69 6e |; from "|Franklin|
|00002ee0| 20 53 2e 20 43 68 65 6e | 67 22 20 61 74 20 41 70 | S. Chen|g" at Ap|
|00002ef0| 72 20 33 30 2c 20 39 34 | 20 31 32 3a 35 36 20 70 |r 30, 94| 12:56 p|
|00002f00| 6d 0a 58 2d 4d 61 69 6c | 65 72 3a 20 45 4c 4d 20 |m.X-Mail|er: ELM |
|00002f10| 5b 76 65 72 73 69 6f 6e | 20 32 2e 33 20 50 4c 30 |[version| 2.3 PL0|
|00002f20| 5d 0a 43 6f 6e 74 65 6e | 74 2d 4c 65 6e 67 74 68 |].Conten|t-Length|
|00002f30| 3a 20 30 0a 0a 3e 20 0a | 3e 20 0a 3e 20 44 65 61 |: 0..> .|> .> Dea|
|00002f40| 72 20 68 61 63 6b 65 72 | 73 2c 0a 3e 20 0a 3e 20 |r hacker|s,.> .> |
|00002f50| 49 20 68 61 76 65 20 61 | 6e 20 65 73 73 65 6e 74 |I have a|n essent|
|00002f60| 69 61 6c 20 77 69 6e 73 | 6f 63 6b 20 70 72 6f 62 |ial wins|ock prob|
|00002f70| 6c 65 6d 20 3a 20 77 68 | 61 74 20 77 69 6c 6c 20 |lem : wh|at will |
|00002f80| 68 61 70 70 65 6e 20 77 | 68 65 6e 20 6d 79 0a 3e |happen w|hen my.>|
|00002f90| 20 70 72 6f 67 72 61 6d | 20 6b 65 65 70 73 20 72 | program| keeps r|
|00002fa0| 75 6e 6e 69 6e 67 28 6e | 65 76 65 72 20 72 65 74 |unning(n|ever ret|
|00002fb0| 75 72 6e 29 20 77 68 69 | 6c 65 20 6d 6f 6e 69 74 |urn) whi|le monit|
|00002fc0| 6f 72 69 6e 67 20 46 44 | 5f 52 45 41 44 20 62 79 |oring FD|_READ by|
|00002fd0| 20 75 73 69 6e 67 0a 3e | 20 57 53 41 73 79 6e 63 | using.>| WSAsync|
|00002fe0| 68 53 65 6c 65 63 74 28 | 29 2c 20 63 61 6e 20 77 |hSelect(|), can w|
|00002ff0| 69 6e 73 6f 63 6b 2e 64 | 6c 6c 20 6f 72 20 74 68 |insock.d|ll or th|
|00003000| 65 20 72 65 61 6c 20 54 | 43 50 2f 49 50 20 73 74 |e real T|CP/IP st|
|00003010| 61 63 6b 73 0a 3e 20 72 | 65 63 65 69 76 65 20 74 |acks.> r|eceive t|
|00003020| 68 65 20 69 6e 63 6f 6d | 69 6e 67 20 70 61 63 6b |he incom|ing pack|
|00003030| 65 74 73 20 3f 20 4d 79 | 20 64 6f 75 62 74 20 69 |ets ? My| doubt i|
|00003040| 73 20 69 66 20 74 68 65 | 20 72 65 61 6c 20 49 50 |s if the| real IP|
|00003050| 2d 6c 61 79 65 72 0a 3e | 20 72 65 63 65 69 76 65 |-layer.>| receive|
|00003060| 73 20 70 61 63 6b 65 74 | 73 20 62 79 20 69 6e 74 |s packet|s by int|
|00003070| 65 72 72 75 70 74 20 6f | 72 20 66 72 6f 6d 20 57 |errupt o|r from W|
|00003080| 69 6e 64 6f 77 73 20 27 | 70 73 65 75 64 6f 27 20 |indows '|pseudo' |
|00003090| 6d 75 6c 74 69 74 61 73 | 6b 69 6e 67 20 3f 0a 3e |multitas|king ?.>|
|000030a0| 20 49 66 20 69 74 27 73 | 20 74 68 65 20 6c 61 74 | If it's| the lat|
|000030b0| 74 65 72 2c 20 6f 66 20 | 63 6f 75 72 73 65 20 2c |ter, of |course ,|
|000030c0| 20 6e 6f 74 20 74 6f 20 | 6d 65 6e 74 69 6f 6e 20 | not to |mention |
|000030d0| 69 74 2e 0a 3e 20 0a 3e | 20 74 68 61 6e 6b 73 2c |it..> .>| thanks,|
|000030e0| 0a 3e 20 46 72 61 6e 6b | 6c 69 6e 2e 0a 3e 20 20 |.> Frank|lin..> |
|000030f0| 0a 0a 59 6f 75 20 77 69 | 6c 6c 20 68 61 76 65 20 |..You wi|ll have |
|00003100| 74 6f 20 79 69 65 6c 64 | 20 62 61 63 6b 20 74 6f |to yield| back to|
|00003110| 20 57 69 6e 64 6f 77 73 | 20 73 6f 6d 65 68 6f 77 | Windows| somehow|
|00003120| 20 69 66 20 79 6f 75 20 | 75 73 65 20 57 53 41 41 | if you |use WSAA|
|00003130| 73 79 6e 63 53 65 6c 65 | 63 74 28 29 2e 0a 54 68 |syncSele|ct()..Th|
|00003140| 65 20 57 69 6e 73 6f 63 | 6b 20 77 6f 75 6c 64 20 |e Winsoc|k would |
|00003150| 68 61 76 65 20 74 6f 20 | 73 6f 6d 65 68 6f 77 20 |have to |somehow |
|00003160| 70 6f 73 74 20 6d 65 73 | 73 61 67 65 20 74 6f 20 |post mes|sage to |
|00003170| 79 6f 75 20 74 6f 20 6e | 6f 74 69 66 79 20 79 6f |you to n|otify yo|
|00003180| 75 20 74 68 65 0a 61 72 | 72 69 76 61 6c 20 6f 66 |u the.ar|rival of|
|00003190| 20 74 68 65 20 64 61 74 | 61 2e 20 20 49 74 20 63 | the dat|a. It c|
|000031a0| 61 6e 20 64 6f 20 69 74 | 20 69 66 20 79 6f 75 20 |an do it| if you |
|000031b0| 61 72 65 20 68 6f 67 67 | 69 6e 67 20 74 68 65 20 |are hogg|ing the |
|000031c0| 57 69 6e 64 6f 77 73 20 | 73 79 73 74 65 6d 2e 0a |Windows |system..|
|000031d0| 0a 57 69 6c 6c 69 61 6d | 0a 2d 2d 0a 77 69 6c 6c |.William|.--.will|
|000031e0| 69 61 6d 40 73 79 62 61 | 73 65 2e 63 6f 6d 0a 0a |iam@syba|se.com..|
|000031f0| 0a 46 72 6f 6d 20 41 62 | 74 69 6e 5f 41 73 73 61 |.From Ab|tin_Assa|
|00003200| 64 69 2f 48 51 2f 33 43 | 6f 6d 40 33 6d 61 69 6c |di/HQ/3C|om@3mail|
|00003210| 2e 33 63 6f 6d 2e 63 6f | 6d 20 4d 6f 6e 20 4d 61 |.3com.co|m Mon Ma|
|00003220| 79 20 20 32 20 32 32 3a | 34 33 3a 30 35 20 31 39 |y 2 22:|43:05 19|
|00003230| 39 34 0a 52 65 63 65 69 | 76 65 64 3a 20 66 72 6f |94.Recei|ved: fro|
|00003240| 6d 20 72 65 6c 61 79 32 | 2e 55 55 2e 4e 45 54 20 |m relay2|.UU.NET |
|00003250| 62 79 20 53 75 6e 53 49 | 54 45 2e 55 6e 63 2e 45 |by SunSI|TE.Unc.E|
|00003260| 44 55 20 28 35 2e 36 35 | 63 2b 49 44 41 2f 46 76 |DU (5.65|c+IDA/Fv|
|00003270| 4b 2d 31 2e 30 37 29 20 | 77 69 74 68 20 53 4d 54 |K-1.07) |with SMT|
|00003280| 50 0a 20 20 20 20 20 20 | 20 20 20 20 69 64 20 41 |P. | id A|
|00003290| 41 31 37 34 34 37 3b 20 | 4d 6f 6e 2c 20 32 20 4d |A17447; |Mon, 2 M|
|000032a0| 61 79 20 31 39 39 34 20 | 32 32 3a 34 33 3a 30 35 |ay 1994 |22:43:05|
|000032b0| 20 2d 30 34 30 30 0a 52 | 65 63 65 69 76 65 64 3a | -0400.R|eceived:|
|000032c0| 20 66 72 6f 6d 20 63 69 | 78 67 61 74 65 2e 33 63 | from ci|xgate.3c|
|000032d0| 6f 6d 2e 63 6f 6d 20 28 | 76 69 61 20 5b 31 39 32 |om.com (|via [192|
|000032e0| 2e 31 35 36 2e 31 33 36 | 2e 31 30 5d 29 20 62 79 |.156.136|.10]) by|
|000032f0| 20 72 65 6c 61 79 32 2e | 55 55 2e 4e 45 54 20 77 | relay2.|UU.NET w|
|00003300| 69 74 68 20 53 4d 54 50 | 20 0a 09 28 35 2e 36 31 |ith SMTP| ..(5.61|
|00003310| 2f 55 55 4e 45 54 2d 69 | 6e 74 65 72 6e 65 74 2d |/UUNET-i|nternet-|
|00003320| 70 72 69 6d 61 72 79 29 | 20 69 64 20 41 41 77 6f |primary)| id AAwo|
|00003330| 66 71 30 34 38 36 34 3b | 20 4d 6f 6e 2c 20 32 20 |fq04864;| Mon, 2 |
|00003340| 4d 61 79 20 39 34 20 32 | 32 3a 34 33 3a 30 32 20 |May 94 2|2:43:02 |
|00003350| 2d 30 34 30 30 0a 52 65 | 63 65 69 76 65 64 3a 20 |-0400.Re|ceived: |
|00003360| 66 72 6f 6d 20 67 77 2e | 33 43 6f 6d 2e 43 4f 4d |from gw.|3Com.COM|
|00003370| 20 62 79 20 63 69 78 67 | 61 74 65 2e 33 63 6f 6d | by cixg|ate.3com|
|00003380| 2e 63 6f 6d 20 28 34 2e | 31 2f 53 4d 49 2d 34 2e |.com (4.|1/SMI-4.|
|00003390| 31 2f 33 63 6f 6d 2d 63 | 69 78 67 61 74 65 2d 47 |1/3com-c|ixgate-G|
|000033a0| 43 41 2d 39 33 31 30 32 | 37 2d 30 31 29 0a 09 69 |CA-93102|7-01)..i|
|000033b0| 64 20 41 41 32 34 38 30 | 39 3b 20 4d 6f 6e 2c 20 |d AA2480|9; Mon, |
|000033c0| 32 20 4d 61 79 20 39 34 | 20 31 39 3a 34 34 3a 31 |2 May 94| 19:44:1|
|000033d0| 31 20 50 44 54 0a 52 65 | 63 65 69 76 65 64 3a 20 |1 PDT.Re|ceived: |
|000033e0| 66 72 6f 6d 20 6e 6f 74 | 65 73 2e 44 45 56 2e 33 |from not|es.DEV.3|
|000033f0| 43 6f 6d 2e 43 4f 4d 20 | 62 79 20 67 77 2e 33 43 |Com.COM |by gw.3C|
|00003400| 6f 6d 2e 43 4f 4d 20 77 | 69 74 68 20 53 4d 54 50 |om.COM w|ith SMTP|
|00003410| 20 69 64 20 41 41 30 39 | 31 36 36 0a 20 20 28 35 | id AA09|166. (5|
|00003420| 2e 36 35 63 2f 49 44 41 | 2d 31 2e 34 2e 34 20 66 |.65c/IDA|-1.4.4 f|
|00003430| 6f 72 20 3c 77 69 6e 73 | 6f 63 6b 2d 68 61 63 6b |or <wins|ock-hack|
|00003440| 65 72 73 40 73 75 6e 73 | 69 74 65 2e 75 6e 63 2e |ers@suns|ite.unc.|
|00003450| 65 64 75 3e 29 3b 20 4d | 6f 6e 2c 20 32 20 4d 61 |edu>); M|on, 2 Ma|
|00003460| 79 20 31 39 39 34 20 31 | 39 3a 34 32 3a 35 39 20 |y 1994 1|9:42:59 |
|00003470| 2d 30 37 30 30 0a 52 65 | 74 75 72 6e 2d 50 61 74 |-0700.Re|turn-Pat|
|00003480| 68 3a 20 3c 41 62 74 69 | 6e 5f 41 73 73 61 64 69 |h: <Abti|n_Assadi|
|00003490| 2f 48 51 2f 33 43 6f 6d | 40 33 6d 61 69 6c 2e 33 |/HQ/3Com|@3mail.3|
|000034a0| 63 6f 6d 2e 63 6f 6d 3e | 0a 52 65 63 65 69 76 65 |com.com>|.Receive|
|000034b0| 64 3a 20 62 79 20 6e 6f | 74 65 73 2e 64 65 76 2e |d: by no|tes.dev.|
|000034c0| 33 63 6f 6d 2e 63 6f 6d | 20 28 49 42 4d 20 4f 53 |3com.com| (IBM OS|
|000034d0| 2f 32 20 53 45 4e 44 4d | 41 49 4c 20 56 45 52 53 |/2 SENDM|AIL VERS|
|000034e0| 49 4f 4e 20 31 2e 33 2e | 30 29 2f 31 2e 30 29 0a |ION 1.3.|0)/1.0).|
|000034f0| 09 20 20 69 64 20 41 41 | 30 38 31 33 3b 20 4d 6f |. id AA|0813; Mo|
|00003500| 6e 2c 20 30 32 20 4d 61 | 79 20 39 34 20 31 39 3a |n, 02 Ma|y 94 19:|
|00003510| 35 32 3a 31 31 20 2d 30 | 37 30 30 0a 4d 65 73 73 |52:11 -0|700.Mess|
|00003520| 61 67 65 2d 49 64 3a 20 | 3c 39 34 30 35 30 33 30 |age-Id: |<9405030|
|00003530| 32 35 32 2e 41 41 30 38 | 31 33 40 6e 6f 74 65 73 |252.AA08|13@notes|
|00003540| 2e 64 65 76 2e 33 63 6f | 6d 2e 63 6f 6d 3e 0a 52 |.dev.3co|m.com>.R|
|00003550| 65 63 65 69 76 65 64 3a | 20 66 72 6f 6d 20 33 43 |eceived:| from 3C|
|00003560| 6f 6d 20 77 69 74 68 20 | 22 4c 6f 74 75 73 20 4e |om with |"Lotus N|
|00003570| 6f 74 65 73 20 4d 61 69 | 6c 20 47 61 74 65 77 61 |otes Mai|l Gatewa|
|00003580| 79 20 66 6f 72 20 53 4d | 54 50 22 20 69 64 0a 20 |y for SM|TP" id. |
|00003590| 30 38 39 34 31 33 45 32 | 35 37 30 39 41 35 39 44 |089413E2|5709A59D|
|000035a0| 38 38 32 35 36 30 34 33 | 30 30 37 37 46 43 33 45 |88256043|0077FC3E|
|000035b0| 3b 20 4d 6f 6e 2c 20 20 | 32 20 4d 61 79 20 39 34 |; Mon, |2 May 94|
|000035c0| 20 31 39 3a 35 32 3a 31 | 31 20 0a 54 6f 3a 20 4d | 19:52:1|1 .To: M|
|000035d0| 75 6c 74 69 70 6c 65 20 | 72 65 63 69 70 69 65 6e |ultiple |recipien|
|000035e0| 74 73 20 6f 66 20 6c 69 | 73 74 20 3c 77 69 6e 73 |ts of li|st <wins|
|000035f0| 6f 63 6b 2d 68 61 63 6b | 65 72 73 40 73 75 6e 73 |ock-hack|ers@suns|
|00003600| 69 74 65 2e 75 6e 63 2e | 65 64 75 3e 0a 46 72 6f |ite.unc.|edu>.Fro|
|00003610| 6d 3a 20 41 62 74 69 6e | 20 41 73 73 61 64 69 2f |m: Abtin| Assadi/|
|00003620| 48 51 2f 33 43 6f 6d 20 | 3c 41 62 74 69 6e 5f 41 |HQ/3Com |<Abtin_A|
|00003630| 73 73 61 64 69 2f 48 51 | 2f 33 43 6f 6d 40 33 6d |ssadi/HQ|/3Com@3m|
|00003640| 61 69 6c 2e 33 63 6f 6d | 2e 63 6f 6d 3e 0a 44 61 |ail.3com|.com>.Da|
|00003650| 74 65 3a 20 20 32 20 4d | 61 79 20 39 34 20 31 34 |te: 2 M|ay 94 14|
|00003660| 3a 35 31 3a 33 33 20 50 | 53 0a 53 75 62 6a 65 63 |:51:33 P|S.Subjec|
|00003670| 74 3a 20 75 6e 73 75 62 | 73 63 72 69 62 65 0a 4d |t: unsub|scribe.M|
|00003680| 69 6d 65 2d 56 65 72 73 | 69 6f 6e 3a 20 31 2e 30 |ime-Vers|ion: 1.0|
|00003690| 0a 43 6f 6e 74 65 6e 74 | 2d 54 79 70 65 3a 20 54 |.Content|-Type: T|
|000036a0| 65 78 74 2f 50 6c 61 69 | 6e 0a 0a 0a 0a 46 72 6f |ext/Plai|n....Fro|
|000036b0| 6d 20 6a 6f 68 6e 74 40 | 75 6e 69 70 61 6c 6d 2e |m johnt@|unipalm.|
|000036c0| 63 6f 2e 75 6b 20 54 75 | 65 20 4d 61 79 20 20 33 |co.uk Tu|e May 3|
|000036d0| 20 30 35 3a 32 36 3a 31 | 38 20 31 39 39 34 0a 52 | 05:26:1|8 1994.R|
|000036e0| 65 63 65 69 76 65 64 3a | 20 66 72 6f 6d 20 75 6e |eceived:| from un|
|000036f0| 69 70 61 6c 6d 2e 63 6f | 2e 75 6b 20 28 75 6e 69 |ipalm.co|.uk (uni|
|00003700| 70 61 6c 6d 2e 75 6e 69 | 70 61 6c 6d 2e 63 6f 2e |palm.uni|palm.co.|
|00003710| 75 6b 29 20 62 79 20 53 | 75 6e 53 49 54 45 2e 55 |uk) by S|unSITE.U|
|00003720| 6e 63 2e 45 44 55 20 28 | 35 2e 36 35 63 2b 49 44 |nc.EDU (|5.65c+ID|
|00003730| 41 2f 46 76 4b 2d 31 2e | 30 37 29 20 77 69 74 68 |A/FvK-1.|07) with|
|00003740| 20 53 4d 54 50 0a 20 20 | 20 20 20 20 20 20 20 20 | SMTP. | |
|00003750| 69 64 20 41 41 30 38 39 | 36 36 3b 20 54 75 65 2c |id AA089|66; Tue,|
|00003760| 20 33 20 4d 61 79 20 31 | 39 39 34 20 30 35 3a 32 | 3 May 1|994 05:2|
|00003770| 36 3a 31 38 20 2d 30 34 | 30 30 0a 52 65 63 65 69 |6:18 -04|00.Recei|
|00003780| 76 65 64 3a 20 66 72 6f | 6d 20 62 72 69 6d 73 74 |ved: fro|m brimst|
|00003790| 6f 6e 65 2e 75 6e 69 70 | 61 6c 6d 2e 63 6f 2e 75 |one.unip|alm.co.u|
|000037a0| 6b 20 62 79 20 75 6e 69 | 70 61 6c 6d 2e 63 6f 2e |k by uni|palm.co.|
|000037b0| 75 6b 20 28 34 2e 31 2f | 53 4d 49 2d 34 2e 31 20 |uk (4.1/|SMI-4.1 |
|000037c0| 28 75 6e 69 70 61 6c 6d | 20 31 2e 31 37 29 29 0a |(unipalm| 1.17)).|
|000037d0| 09 69 64 20 41 41 32 36 | 38 34 31 3b 20 54 75 65 |.id AA26|841; Tue|
|000037e0| 2c 20 33 20 4d 61 79 20 | 39 34 20 31 30 3a 32 35 |, 3 May |94 10:25|
|000037f0| 3a 32 37 20 42 53 54 0a | 52 65 63 65 69 76 65 64 |:27 BST.|Received|
|00003800| 3a 20 66 72 6f 6d 20 64 | 72 65 66 74 2e 75 6e 69 |: from d|reft.uni|
|00003810| 70 61 6c 6d 2e 63 6f 2e | 75 6b 20 62 79 20 62 72 |palm.co.|uk by br|
|00003820| 69 6d 73 74 6f 6e 65 2e | 75 6e 69 70 61 6c 6d 2e |imstone.|unipalm.|
|00003830| 63 6f 2e 75 6b 20 28 34 | 2e 31 2f 53 4d 49 2d 34 |co.uk (4|.1/SMI-4|
|00003840| 2e 31 20 62 72 69 6d 73 | 74 6f 6e 65 20 31 2e 31 |.1 brims|tone 1.1|
|00003850| 39 29 0a 09 69 64 20 41 | 41 32 35 36 30 30 3b 20 |9)..id A|A25600; |
|00003860| 54 75 65 2c 20 33 20 4d | 61 79 20 39 34 20 31 30 |Tue, 3 M|ay 94 10|
|00003870| 3a 32 36 3a 31 31 20 42 | 53 54 0a 4d 65 73 73 61 |:26:11 B|ST.Messa|
|00003880| 67 65 2d 49 64 3a 20 3c | 4d 41 50 49 2e 30 30 31 |ge-Id: <|MAPI.001|
|00003890| 36 2e 30 30 36 66 36 38 | 36 65 37 34 32 30 32 30 |6.006f68|6e742020|
|000038a0| 32 30 33 31 33 38 33 37 | 33 35 33 30 33 30 33 32 |20313837|35303032|
|000038b0| 33 38 2e 6a 6f 68 6e 74 | 40 75 6e 69 70 61 6c 6d |38.johnt|@unipalm|
|000038c0| 2e 63 6f 2e 75 6b 3e 0a | 49 6e 2d 52 65 70 6c 79 |.co.uk>.|In-Reply|
|000038d0| 2d 54 6f 3a 20 3c 39 34 | 30 34 32 37 30 34 35 37 |-To: <94|04270457|
|000038e0| 2e 41 41 31 35 32 30 32 | 40 61 74 6c 61 73 3e 0a |.AA15202|@atlas>.|
|000038f0| 52 65 66 65 72 65 6e 63 | 65 73 3a 20 43 6f 6e 76 |Referenc|es: Conv|
|00003900| 65 72 73 61 74 69 6f 6e | 20 3c 39 34 30 34 32 37 |ersation| <940427|
|00003910| 30 34 35 37 2e 41 41 31 | 35 32 30 32 40 61 74 6c |0457.AA1|5202@atl|
|00003920| 61 73 3e 20 77 69 74 68 | 20 6c 61 73 74 20 6d 65 |as> with| last me|
|00003930| 73 73 61 67 65 20 3c 39 | 34 30 34 32 37 30 34 35 |ssage <9|40427045|
|00003940| 37 2e 41 41 31 35 32 30 | 32 40 61 74 6c 61 73 3e |7.AA1520|2@atlas>|
|00003950| 0a 50 72 69 6f 72 69 74 | 79 3a 20 4e 6f 72 6d 61 |.Priorit|y: Norma|
|00003960| 6c 0a 54 6f 3a 20 70 61 | 75 6c 40 61 74 6c 61 73 |l.To: pa|ul@atlas|
|00003970| 2e 61 62 63 63 6f 6d 70 | 2e 6f 7a 2e 61 75 2c 0a |.abccomp|.oz.au,.|
|00003980| 20 20 20 20 20 20 20 20 | 4d 75 6c 74 69 70 6c 65 | |Multiple|
|00003990| 20 72 65 63 69 70 69 65 | 6e 74 73 20 6f 66 20 6c | recipie|nts of l|
|000039a0| 69 73 74 20 3c 77 69 6e | 73 6f 63 6b 2d 68 61 63 |ist <win|sock-hac|
|000039b0| 6b 65 72 73 40 73 75 6e | 73 69 74 65 2e 75 6e 63 |kers@sun|site.unc|
|000039c0| 2e 65 64 75 3e 0a 52 65 | 70 6c 79 2d 54 6f 3a 20 |.edu>.Re|ply-To: |
|000039d0| 6a 6f 68 6e 74 40 75 6e | 69 70 61 6c 6d 2e 63 6f |johnt@un|ipalm.co|
|000039e0| 2e 75 6b 0a 4d 69 6d 65 | 2d 56 65 72 73 69 6f 6e |.uk.Mime|-Version|
|000039f0| 3a 20 31 2e 30 0a 46 72 | 6f 6d 3a 20 4a 6f 68 6e |: 1.0.Fr|om: John|
|00003a00| 20 54 61 79 6c 6f 72 20 | 3c 6a 6f 68 6e 74 40 75 | Taylor |<johnt@u|
|00003a10| 6e 69 70 61 6c 6d 2e 63 | 6f 2e 75 6b 3e 0a 53 75 |nipalm.c|o.uk>.Su|
|00003a20| 62 6a 65 63 74 3a 20 52 | 65 3a 20 46 57 3a 20 57 |bject: R|e: FW: W|
|00003a30| 68 61 74 27 73 20 68 61 | 70 70 65 6e 69 6e 67 20 |hat's ha|ppening |
|00003a40| 68 65 72 65 3f 0a 44 61 | 74 65 3a 20 54 75 65 2c |here?.Da|te: Tue,|
|00003a50| 20 30 33 20 4d 61 79 20 | 39 34 20 31 30 3a 33 34 | 03 May |94 10:34|
|00003a60| 3a 31 37 20 42 53 54 0a | 43 6f 6e 74 65 6e 74 2d |:17 BST.|Content-|
|00003a70| 54 79 70 65 3a 20 74 65 | 78 74 2f 70 6c 61 69 6e |Type: te|xt/plain|
|00003a80| 3b 20 63 68 61 72 73 65 | 74 3d 55 53 2d 41 53 43 |; charse|t=US-ASC|
|00003a90| 49 49 3b 20 58 2d 4d 41 | 50 49 65 78 74 65 6e 73 |II; X-MA|PIextens|
|00003aa0| 69 6f 6e 3d 22 2e 54 58 | 54 22 3b 20 58 2d 4d 41 |ion=".TX|T"; X-MA|
|00003ab0| 50 49 72 65 6e 64 65 72 | 69 6e 67 70 6f 73 3d 30 |PIrender|ingpos=0|
|00003ac0| 78 46 46 46 46 46 46 46 | 46 0a 43 6f 6e 74 65 6e |xFFFFFFF|F.Conten|
|00003ad0| 74 2d 54 72 61 6e 73 66 | 65 72 2d 45 6e 63 6f 64 |t-Transf|er-Encod|
|00003ae0| 69 6e 67 3a 20 71 75 6f | 74 65 64 2d 70 72 69 6e |ing: quo|ted-prin|
|00003af0| 74 61 62 6c 65 0a 0a 4f | 6e 20 53 61 74 2c 20 33 |table..O|n Sat, 3|
|00003b00| 30 20 41 70 72 20 39 34 | 20 31 38 3a 34 39 3a 34 |0 Apr 94| 18:49:4|
|00003b10| 30 20 42 53 54 20 20 20 | 70 61 75 6c 40 61 74 6c |0 BST |paul@atl|
|00003b20| 61 73 2e 61 62 63 63 6f | 6d 70 2e 6f 7a 2e 61 75 |as.abcco|mp.oz.au|
|00003b30| 20 57 72 6f 74 65 3a 0a | 0a 3e 20 54 68 75 73 20 | Wrote:.|.> Thus |
|00003b40| 65 78 70 6f 75 6e 64 65 | 64 20 70 61 75 6c 40 61 |expounde|d paul@a|
|00003b50| 74 6c 61 73 20 6f 6e 20 | 41 70 72 20 32 36 2c 20 |tlas on |Apr 26, |
|00003b60| 36 3a 33 32 70 6d 3a 0a | 3e 20 2f 2d 2d 2d 2d 2d |6:32pm:.|> /-----|
|00003b70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00003b80| 3e 20 7c 0a 3e 20 7c 41 | 73 73 75 6d 69 6e 67 20 |> |.> |A|ssuming |
|00003b90| 70 6f 72 74 20 31 31 31 | 31 20 69 73 20 74 68 65 |port 111|1 is the|
|00003ba0| 20 73 65 72 76 65 72 20 | 70 6f 72 74 2c 20 61 6e | server |port, an|
|00003bb0| 64 20 31 30 32 36 20 69 | 73 20 79 6f 75 72 20 57 |d 1026 i|s your W|
|00003bc0| 69 6e 73 6f 63 6b 27 73 | 20 70 6f 72 74 3d 0a 2c |insock's| port=.,|
|00003bd0| 0a 3e 20 7c 74 68 69 73 | 20 6c 6f 6f 6b 73 20 6c |.> |this| looks l|
|00003be0| 69 6b 65 20 61 20 54 43 | 50 20 62 75 67 2e 20 49 |ike a TC|P bug. I|
|00003bf0| 6e 20 74 68 65 20 73 65 | 63 6f 6e 64 20 6c 69 6e |n the se|cond lin|
|00003c00| 65 20 28 74 68 65 20 66 | 69 72 73 74 20 31 30 32 |e (the f|irst 102|
|00003c10| 36 2d 3e 31 31 31 31 20 | 3d 0a 70 61 63 6b 65 74 |6->1111 |=.packet|
|00003c20| 29 0a 3e 20 7c 74 68 65 | 20 41 43 4b 20 66 69 65 |).> |the| ACK fie|
|00003c30| 6c 64 20 73 68 6f 75 6c | 64 20 62 65 20 73 65 74 |ld shoul|d be set|
|00003c40| 20 74 6f 20 74 68 65 20 | 70 72 65 76 69 6f 75 73 | to the |previous|
|00003c50| 20 53 45 51 20 66 69 65 | 6c 64 2b 31 2e 20 42 65 | SEQ fie|ld+1. Be|
|00003c60| 63 61 75 73 65 20 69 74 | 73 20 3d 0a 6e 6f 74 2c |cause it|s =.not,|
|00003c70| 0a 3e 20 7c 74 68 65 20 | 72 65 6d 6f 74 65 20 6d |.> |the |remote m|
|00003c80| 61 63 68 69 6e 65 20 69 | 73 20 61 62 6f 72 74 69 |achine i|s aborti|
|00003c90| 6e 67 20 74 68 65 20 63 | 6f 6e 6e 65 63 74 69 6f |ng the c|onnectio|
|00003ca0| 6e 20 61 6e 64 20 72 65 | 74 75 72 6e 69 6e 67 20 |n and re|turning |
|00003cb0| 61 20 52 53 54 2e 0a 3e | 20 0a 3e 20 65 74 63 2e |a RST..>| .> etc.|
|00003cc0| 0a 3e 20 0a 3e 20 41 6e | 79 6f 6e 65 20 6b 6e 6f |.> .> An|yone kno|
|00003cd0| 77 20 77 68 69 63 68 20 | 27 77 68 69 74 65 20 68 |w which |'white h|
|00003ce0| 6f 6c 65 27 20 74 68 69 | 73 20 6d 65 73 73 61 67 |ole' thi|s messag|
|00003cf0| 65 20 63 61 6d 65 20 66 | 72 6f 6d 3f 20 49 20 64 |e came f|rom? I d|
|00003d00| 69 6d 6c 79 0a 3e 20 72 | 65 6d 65 6d 62 65 72 20 |imly.> r|emember |
|00003d10| 73 65 6e 64 69 6e 67 20 | 74 68 69 73 20 6d 61 6e |sending |this man|
|00003d20| 79 20 6d 6f 6e 74 68 73 | 20 61 67 6f 2c 20 61 6e |y months| ago, an|
|00003d30| 64 20 64 6f 6e 27 74 20 | 72 65 6d 65 6d 62 65 72 |d don't |remember|
|00003d40| 20 69 66 20 69 74 20 77 | 61 73 0a 3e 20 73 65 65 | if it w|as.> see|
|00003d50| 6e 20 6f 6e 20 74 68 65 | 20 6c 69 73 74 20 62 61 |n on the| list ba|
|00003d60| 63 6b 20 74 68 65 6e 2c | 20 62 75 74 20 69 74 20 |ck then,| but it |
|00003d70| 63 65 72 74 61 69 6e 6c | 79 20 61 69 6e 74 20 72 |certainl|y aint r|
|00003d80| 65 63 65 6e 74 21 0a 3e | 20 57 69 65 72 64 2e 0a |ecent!.>| Wierd..|
|00003d90| 0a 0a 53 6f 6d 65 74 68 | 69 6e 67 20 73 74 72 61 |..Someth|ing stra|
|00003da0| 6e 67 65 20 73 65 65 6d | 73 20 74 6f 20 62 65 20 |nge seem|s to be |
|00003db0| 67 6f 69 6e 67 20 6f 6e | 2e 0a 49 27 76 65 20 6e |going on|..I've n|
|00003dc0| 6f 74 20 73 65 65 6e 20 | 6d 75 63 68 20 74 72 61 |ot seen |much tra|
|00003dd0| 66 66 69 63 20 6f 6e 20 | 74 68 65 20 77 69 6e 73 |ffic on |the wins|
|00003de0| 6f 63 6b 2d 68 61 63 6b | 65 72 73 20 6c 69 73 74 |ock-hack|ers list|
|00003df0| 2c 20 74 68 65 6e 20 73 | 75 64 64 65 6e 6c 79 20 |, then s|uddenly |
|00003e00| 3d 0a 74 6f 64 61 79 0a | 49 20 67 6f 74 20 61 62 |=.today.|I got ab|
|00003e10| 6f 75 74 20 74 68 69 72 | 74 79 20 6d 65 73 73 61 |out thir|ty messa|
|00003e20| 67 65 73 20 61 6c 6c 20 | 61 74 20 6f 6e 63 65 2c |ges all |at once,|
|00003e30| 20 69 6e 63 6c 75 64 69 | 6e 67 20 73 6f 6d 65 20 | includi|ng some |
|00003e40| 74 68 72 65 61 64 73 20 | 6f 66 20 73 65 76 65 72 |threads |of sever|
|00003e50| 61 3d 0a 6c 20 6d 65 73 | 73 61 67 65 73 2e 0a 0a |a=.l mes|sages...|
|00003e60| 49 73 20 74 68 65 72 65 | 20 61 20 6c 6f 67 6a 61 |Is there| a logja|
|00003e70| 6d 20 73 6f 6d 65 77 68 | 65 72 65 20 3f 0a 0a 52 |m somewh|ere ?..R|
|00003e80| 65 67 61 72 64 73 0a 0a | 4a 6f 68 6e 20 54 61 79 |egards..|John Tay|
|00003e90| 6c 6f 72 0a 6a 6f 68 6e | 74 40 75 6e 69 70 61 6c |lor.john|t@unipal|
|00003ea0| 6d 2e 63 6f 2e 75 6b 0a | 2b 34 34 20 32 32 33 20 |m.co.uk.|+44 223 |
|00003eb0| 32 35 30 31 30 30 0a 0a | 46 72 6f 6d 20 61 31 36 |250100..|From a16|
|00003ec0| 39 30 33 40 69 74 65 73 | 6f 63 63 69 2e 67 64 6c |903@ites|occi.gdl|
|00003ed0| 2e 69 74 65 73 6f 2e 6d | 78 20 4d 6f 6e 20 4d 61 |.iteso.m|x Mon Ma|
|00003ee0| 79 20 20 32 20 31 35 3a | 33 32 3a 35 37 20 31 39 |y 2 15:|32:57 19|
|00003ef0| 39 34 0a 52 65 63 65 69 | 76 65 64 3a 20 66 72 6f |94.Recei|ved: fro|
|00003f00| 6d 20 69 74 65 73 6f 63 | 63 69 20 28 5b 31 34 38 |m itesoc|ci ([148|
|00003f10| 2e 32 30 31 2e 31 2e 34 | 5d 29 20 62 79 20 53 75 |.201.1.4|]) by Su|
|00003f20| 6e 53 49 54 45 2e 55 6e | 63 2e 45 44 55 20 28 35 |nSITE.Un|c.EDU (5|
|00003f30| 2e 36 35 63 2b 49 44 41 | 2f 46 76 4b 2d 31 2e 30 |.65c+IDA|/FvK-1.0|
|00003f40| 37 29 20 77 69 74 68 20 | 53 4d 54 50 0a 20 20 20 |7) with |SMTP. |
|00003f50| 20 20 20 20 20 20 20 69 | 64 20 41 41 30 30 34 38 | i|d AA0048|
|00003f60| 38 3b 20 54 75 65 2c 20 | 33 20 4d 61 79 20 31 39 |8; Tue, |3 May 19|
|00003f70| 39 34 20 30 38 3a 30 30 | 3a 33 32 20 2d 30 34 30 |94 08:00|:32 -040|
|00003f80| 30 0a 52 65 63 65 69 76 | 65 64 3a 20 62 79 20 69 |0.Receiv|ed: by i|
|00003f90| 74 65 73 6f 63 63 69 20 | 28 34 2e 31 2f 53 4d 49 |tesocci |(4.1/SMI|
|00003fa0| 2d 34 2e 31 29 0a 09 69 | 64 20 41 41 32 37 31 37 |-4.1)..i|d AA2717|
|00003fb0| 30 3b 20 4d 6f 6e 2c 20 | 32 20 4d 61 79 20 39 34 |0; Mon, |2 May 94|
|00003fc0| 20 32 31 3a 33 32 3a 35 | 38 20 43 53 54 0a 46 72 | 21:32:5|8 CST.Fr|
|00003fd0| 6f 6d 3a 20 61 31 36 39 | 30 33 40 69 74 65 73 6f |om: a169|03@iteso|
|00003fe0| 63 63 69 2e 67 64 6c 2e | 69 74 65 73 6f 2e 6d 78 |cci.gdl.|iteso.mx|
|00003ff0| 20 28 54 6f 72 72 65 73 | 20 44 65 20 4e 69 7a 20 | (Torres| De Niz |
|00004000| 56 69 63 65 6e 74 65 29 | 0a 4d 65 73 73 61 67 65 |Vicente)|.Message|
|00004010| 2d 49 64 3a 20 3c 39 34 | 30 35 30 33 30 33 33 32 |-Id: <94|05030332|
|00004020| 2e 41 41 32 37 31 37 30 | 40 69 74 65 73 6f 63 63 |.AA27170|@itesocc|
|00004030| 69 3e 0a 53 75 62 6a 65 | 63 74 3a 20 53 65 6e 64 |i>.Subje|ct: Send|
|00004040| 69 6e 67 20 61 20 42 72 | 6f 61 64 63 61 73 74 0a |ing a Br|oadcast.|
|00004050| 54 6f 3a 20 77 69 6e 73 | 6f 63 6b 2d 68 61 63 6b |To: wins|ock-hack|
|00004060| 65 72 73 40 73 75 6e 73 | 69 74 65 2e 75 6e 63 2e |ers@suns|ite.unc.|
|00004070| 65 64 75 0a 44 61 74 65 | 3a 20 4d 6f 6e 2c 20 32 |edu.Date|: Mon, 2|
|00004080| 20 4d 61 79 20 31 39 39 | 34 20 32 31 3a 33 32 3a | May 199|4 21:32:|
|00004090| 35 37 20 2d 30 36 30 30 | 20 28 43 53 54 29 0a 58 |57 -0600| (CST).X|
|000040a0| 2d 4d 61 69 6c 65 72 3a | 20 45 4c 4d 20 5b 76 65 |-Mailer:| ELM [ve|
|000040b0| 72 73 69 6f 6e 20 32 2e | 34 20 50 4c 32 30 5d 0a |rsion 2.|4 PL20].|
|000040c0| 43 6f 6e 74 65 6e 74 2d | 54 79 70 65 3a 20 74 65 |Content-|Type: te|
|000040d0| 78 74 0a 43 6f 6e 74 65 | 6e 74 2d 4c 65 6e 67 74 |xt.Conte|nt-Lengt|
|000040e0| 68 3a 20 35 31 35 20 20 | 20 20 20 20 20 0a 0a 09 |h: 515 | ...|
|000040f0| 48 69 20 65 76 65 72 79 | 62 6f 64 79 3a 0a 0a 09 |Hi every|body:...|
|00004100| 4a 75 73 74 20 6f 6e 65 | 20 71 75 65 73 74 69 6f |Just one| questio|
|00004110| 6e 3a 20 61 63 74 75 61 | 6c 6c 79 20 69 27 6d 20 |n: actua|lly i'm |
|00004120| 64 65 76 65 6c 6f 70 69 | 6e 67 20 61 20 70 72 6f |developi|ng a pro|
|00004130| 67 72 61 6d 20 74 68 61 | 74 20 74 72 69 65 73 20 |gram tha|t tries |
|00004140| 74 6f 0a 73 65 6e 64 20 | 61 20 62 72 6f 61 63 61 |to.send |a broaca|
|00004150| 73 74 20 6f 76 65 72 20 | 74 68 65 20 6e 65 74 2c |st over |the net,|
|00004160| 20 69 27 6d 20 75 73 69 | 6e 67 20 69 6e 20 74 68 | i'm usi|ng in th|
|00004170| 65 20 73 6f 63 6b 65 74 | 20 64 65 66 69 6e 69 74 |e socket| definit|
|00004180| 69 6f 6e 20 74 68 65 20 | 0a 64 61 74 61 67 72 61 |ion the |.datagra|
|00004190| 6d 20 6f 70 74 69 6f 6e | 20 61 6e 64 20 69 6e 20 |m option| and in |
|000041a0| 74 68 65 20 73 6f 63 6b | 65 74 27 73 20 6f 70 74 |the sock|et's opt|
|000041b0| 69 6f 6e 73 20 74 68 65 | 20 6f 6e 65 20 72 65 6c |ions the| one rel|
|000041c0| 61 74 65 64 20 77 69 74 | 68 20 62 72 6f 61 64 2d |ated wit|h broad-|
|000041d0| 0a 63 61 73 74 20 28 53 | 4f 5f 42 52 4f 41 44 43 |.cast (S|O_BROADC|
|000041e0| 41 53 54 29 2e 0a 0a 09 | 49 6e 20 74 68 65 20 64 |AST)....|In the d|
|000041f0| 65 73 74 69 6e 61 74 69 | 6f 6e 20 61 64 64 72 65 |estinati|on addre|
|00004200| 73 73 20 69 27 6d 20 75 | 73 69 6e 67 20 74 68 65 |ss i'm u|sing the|
|00004210| 20 49 4e 45 54 5f 42 52 | 4f 41 44 43 41 53 54 20 | INET_BR|OADCAST |
|00004220| 64 65 66 69 6e 65 64 0a | 69 6e 20 74 68 65 20 77 |defined.|in the w|
|00004230| 69 6e 73 6f 63 6b 2e 68 | 20 61 73 20 30 78 66 66 |insock.h| as 0xff|
|00004240| 66 66 66 66 66 66 2e 20 | 49 6e 20 62 6f 74 68 20 |ffffff. |In both |
|00004250| 70 72 6f 67 72 61 6d 73 | 20 69 27 6d 20 75 73 69 |programs| i'm usi|
|00004260| 6e 67 20 74 68 65 20 73 | 61 6d 65 20 70 6f 72 74 |ng the s|ame port|
|00004270| 0a 61 6e 64 20 74 68 65 | 79 20 61 72 65 20 72 75 |.and the|y are ru|
|00004280| 6e 6e 69 6e 67 20 6f 76 | 65 72 20 61 20 6e 6f 76 |nning ov|er a nov|
|00004290| 65 6c 6c 20 6e 65 74 77 | 61 72 65 20 76 20 33 2e |ell netw|are v 3.|
|000042a0| 31 31 0a 0a 09 57 68 61 | 74 20 69 27 6d 20 64 6f |11...Wha|t i'm do|
|000042b0| 69 6e 67 20 77 72 6f 6e | 67 20 3f 0a 0a 09 56 69 |ing wron|g ?...Vi|
|000042c0| 63 65 6e 74 65 20 54 6f | 72 72 65 73 20 64 65 20 |cente To|rres de |
|000042d0| 4e 69 7a 20 20 61 31 36 | 39 30 33 40 69 74 65 73 |Niz a16|903@ites|
|000042e0| 6f 63 63 69 2e 67 64 6c | 2e 69 74 65 73 6f 2e 6d |occi.gdl|.iteso.m|
|000042f0| 78 0a 46 72 6f 6d 20 77 | 69 6c 73 6f 6e 40 66 74 |x.From w|ilson@ft|
|00004300| 70 2e 63 6f 6d 20 57 65 | 64 20 4d 61 79 20 20 34 |p.com We|d May 4|
|00004310| 20 30 35 3a 32 33 3a 35 | 36 20 31 39 39 34 0a 52 | 05:23:5|6 1994.R|
|00004320| 65 63 65 69 76 65 64 3a | 20 66 72 6f 6d 20 66 74 |eceived:| from ft|
|00004330| 70 2e 63 6f 6d 20 28 77 | 64 34 30 2e 66 74 70 2e |p.com (w|d40.ftp.|
|00004340| 63 6f 6d 29 20 62 79 20 | 53 75 6e 53 49 54 45 2e |com) by |SunSITE.|
|00004350| 55 6e 63 2e 45 44 55 20 | 28 35 2e 36 35 63 2b 49 |Unc.EDU |(5.65c+I|
|00004360| 44 41 2f 46 76 4b 2d 31 | 2e 30 37 29 20 77 69 74 |DA/FvK-1|.07) wit|
|00004370| 68 20 53 4d 54 50 0a 20 | 20 20 20 20 20 20 20 20 |h SMTP. | |
|00004380| 20 69 64 20 41 41 31 31 | 30 31 32 3b 20 57 65 64 | id AA11|012; Wed|
|00004390| 2c 20 34 20 4d 61 79 20 | 31 39 39 34 20 30 39 3a |, 4 May |1994 09:|
|000043a0| 32 34 3a 35 36 20 2d 30 | 34 30 30 0a 52 65 63 65 |24:56 -0|400.Rece|
|000043b0| 69 76 65 64 3a 20 62 79 | 20 66 74 70 2e 63 6f 6d |ived: by| ftp.com|
|000043c0| 20 20 3b 20 57 65 64 2c | 20 34 20 4d 61 79 20 31 | ; Wed,| 4 May 1|
|000043d0| 39 39 34 20 30 39 3a 32 | 33 3a 35 36 20 2d 30 34 |994 09:2|3:56 -04|
|000043e0| 30 30 0a 52 65 63 65 69 | 76 65 64 3a 20 62 79 20 |00.Recei|ved: by |
|000043f0| 66 74 70 2e 63 6f 6d 20 | 20 3b 20 57 65 64 2c 20 |ftp.com | ; Wed, |
|00004400| 34 20 4d 61 79 20 31 39 | 39 34 20 30 39 3a 32 33 |4 May 19|94 09:23|
|00004410| 3a 35 36 20 2d 30 34 30 | 30 0a 46 72 6f 6d 3a 20 |:56 -040|0.From: |
|00004420| 77 69 6c 73 6f 6e 40 66 | 74 70 2e 63 6f 6d 20 28 |wilson@f|tp.com (|
|00004430| 42 72 61 64 20 57 69 6c | 73 6f 6e 29 0a 4d 65 73 |Brad Wil|son).Mes|
|00004440| 73 61 67 65 2d 49 64 3a | 20 3c 39 34 30 35 30 34 |sage-Id:| <940504|
|00004450| 31 33 32 33 2e 41 41 32 | 34 33 31 31 40 66 74 70 |1323.AA2|4311@ftp|
|00004460| 2e 63 6f 6d 3e 0a 53 75 | 62 6a 65 63 74 3a 20 52 |.com>.Su|bject: R|
|00004470| 65 3a 20 43 75 72 69 6f | 75 73 20 62 65 68 61 76 |e: Curio|us behav|
|00004480| 69 6f 75 72 20 66 72 6f | 6d 20 77 69 6e 73 6f 63 |iour fro|m winsoc|
|00004490| 6b 0a 54 6f 3a 20 42 72 | 75 63 65 40 69 73 69 2e |k.To: Br|uce@isi.|
|000044a0| 46 72 6f 6e 74 69 65 72 | 54 65 63 68 2e 43 4f 4d |Frontier|Tech.COM|
|000044b0| 0a 44 61 74 65 3a 20 57 | 65 64 2c 20 34 20 4d 61 |.Date: W|ed, 4 Ma|
|000044c0| 79 20 31 39 39 34 20 30 | 39 3a 32 33 3a 35 36 20 |y 1994 0|9:23:56 |
|000044d0| 2d 30 34 30 30 20 28 45 | 44 54 29 0a 43 63 3a 20 |-0400 (E|DT).Cc: |
|000044e0| 77 69 6e 73 6f 63 6b 2d | 68 61 63 6b 65 72 73 40 |winsock-|hackers@|
|000044f0| 73 75 6e 73 69 74 65 2e | 75 6e 63 2e 65 64 75 0a |sunsite.|unc.edu.|
|00004500| 49 6e 2d 52 65 70 6c 79 | 2d 54 6f 3a 20 3c 32 44 |In-Reply|-To: <2D|
|00004510| 43 35 31 30 35 41 2d 30 | 30 30 30 30 30 30 31 40 |C5105A-0|0000001@|
|00004520| 42 72 75 63 65 73 2e 46 | 72 6f 6e 74 69 65 72 54 |Bruces.F|rontierT|
|00004530| 65 63 68 2e 43 4f 4d 3e | 20 66 72 6f 6d 20 22 42 |ech.COM>| from "B|
|00004540| 72 75 63 65 40 69 73 69 | 2e 46 72 6f 6e 74 69 65 |ruce@isi|.Frontie|
|00004550| 72 54 65 63 68 2e 43 4f | 4d 22 20 61 74 20 4d 61 |rTech.CO|M" at Ma|
|00004560| 79 20 34 2c 20 39 34 20 | 30 33 3a 32 39 3a 32 34 |y 4, 94 |03:29:24|
|00004570| 20 61 6d 0a 58 2d 4d 61 | 69 6c 65 72 3a 20 45 4c | am.X-Ma|iler: EL|
|00004580| 4d 20 5b 76 65 72 73 69 | 6f 6e 20 32 2e 34 20 50 |M [versi|on 2.4 P|
|00004590| 4c 32 33 5d 0a 4d 69 6d | 65 2d 56 65 72 73 69 6f |L23].Mim|e-Versio|
|000045a0| 6e 3a 20 31 2e 30 0a 43 | 6f 6e 74 65 6e 74 2d 54 |n: 1.0.C|ontent-T|
|000045b0| 79 70 65 3a 20 74 65 78 | 74 2f 70 6c 61 69 6e 3b |ype: tex|t/plain;|
|000045c0| 20 63 68 61 72 73 65 74 | 3d 55 53 2d 41 53 43 49 | charset|=US-ASCI|
|000045d0| 49 0a 43 6f 6e 74 65 6e | 74 2d 54 72 61 6e 73 66 |I.Conten|t-Transf|
|000045e0| 65 72 2d 45 6e 63 6f 64 | 69 6e 67 3a 20 37 62 69 |er-Encod|ing: 7bi|
|000045f0| 74 0a 43 6f 6e 74 65 6e | 74 2d 4c 65 6e 67 74 68 |t.Conten|t-Length|
|00004600| 3a 20 31 35 36 35 20 20 | 20 20 20 20 0a 0a 3e 3e |: 1565 | ..>>|
|00004610| 20 53 65 6e 64 69 6e 67 | 20 74 68 65 20 46 49 4e | Sending| the FIN|
|00004620| 20 77 6f 75 6c 64 20 70 | 75 74 20 74 68 65 20 63 | would p|ut the c|
|00004630| 6f 6e 6e 65 63 74 69 6f | 6e 20 69 6e 20 46 49 4e |onnectio|n in FIN|
|00004640| 5f 57 41 49 54 20 73 74 | 61 74 65 2c 20 73 6f 20 |_WAIT st|ate, so |
|00004650| 74 68 65 0a 3e 3e 20 46 | 44 5f 43 4c 4f 53 45 20 |the.>> F|D_CLOSE |
|00004660| 77 6f 75 6c 64 2c 20 74 | 68 65 6f 72 65 74 69 63 |would, t|heoretic|
|00004670| 61 6c 6c 79 2c 20 62 65 | 20 70 6f 73 74 65 64 20 |ally, be| posted |
|00004680| 69 6d 6d 65 64 69 61 74 | 65 6c 79 20 69 6e 20 63 |immediat|ely in c|
|00004690| 6c 6f 73 65 73 6f 63 6b | 65 74 28 29 2e 0a 0a 57 |losesock|et()...W|
|000046a0| 68 61 74 20 70 75 72 70 | 6f 73 65 20 64 6f 65 73 |hat purp|ose does|
|000046b0| 20 74 68 69 73 20 73 65 | 72 76 65 3f 20 20 54 6f | this se|rve? To|
|000046c0| 20 76 61 6c 69 64 61 74 | 65 20 74 68 61 74 20 79 | validat|e that y|
|000046d0| 6f 75 20 72 65 61 6c 6c | 79 20 64 69 64 20 63 6c |ou reall|y did cl|
|000046e0| 6f 73 65 20 74 68 65 0a | 73 6f 63 6b 65 74 3f 20 |ose the.|socket? |
|000046f0| 20 3b 2d 29 20 20 49 4d | 48 4f 2c 20 74 68 65 20 | ;-) IM|HO, the |
|00004700| 73 70 65 63 20 69 73 20 | 62 72 6f 6b 65 6e 20 69 |spec is |broken i|
|00004710| 73 20 74 68 69 73 20 72 | 65 73 70 65 63 74 2c 20 |s this r|espect, |
|00004720| 62 65 63 61 75 73 65 20 | 69 74 20 73 61 79 73 0a |because |it says.|
|00004730| 28 74 68 65 73 65 20 61 | 72 65 20 66 72 6f 6d 20 |(these a|re from |
|00004740| 6d 65 6d 6f 72 79 29 3a | 0a 0a 09 31 2e 20 63 61 |memory):|...1. ca|
|00004750| 6c 6c 69 6e 67 20 63 6c | 6f 73 65 73 6f 63 6b 65 |lling cl|osesocke|
|00004760| 74 28 29 20 63 61 6e 63 | 65 6c 73 20 61 6c 6c 20 |t() canc|els all |
|00004770| 61 73 79 6e 63 20 6e 6f | 74 69 66 69 63 61 74 69 |async no|tificati|
|00004780| 6f 6e 0a 09 32 2e 20 74 | 68 65 20 73 74 61 63 6b |on..2. t|he stack|
|00004790| 20 67 65 74 73 20 61 20 | 46 44 5f 43 4c 4f 53 45 | gets a |FD_CLOSE|
|000047a0| 20 61 74 20 46 49 4e 5f | 57 41 49 54 0a 0a 49 6e | at FIN_|WAIT..In|
|000047b0| 20 74 68 65 20 63 61 73 | 65 20 77 68 65 72 65 20 | the cas|e where |
|000047c0| 79 6f 75 20 63 61 6c 6c | 20 63 6c 6f 73 65 73 6f |you call| closeso|
|000047d0| 63 6b 65 74 28 29 2c 20 | 77 68 69 63 68 20 74 61 |cket(), |which ta|
|000047e0| 6b 65 73 20 70 72 65 63 | 65 64 65 6e 63 65 3f 20 |kes prec|edence? |
|000047f0| 20 53 69 6e 63 65 0a 79 | 6f 75 20 63 61 6c 6c 65 | Since.y|ou calle|
|00004800| 64 20 63 6c 6f 73 65 73 | 6f 63 6b 65 74 28 29 2c |d closes|ocket(),|
|00004810| 20 79 6f 75 20 73 68 6f | 75 6c 64 6e 27 74 20 65 | you sho|uldn't e|
|00004820| 78 70 65 63 74 20 74 6f | 20 73 65 65 20 61 6e 79 |xpect to| see any|
|00004830| 20 6d 6f 72 65 20 6d 65 | 73 73 61 67 65 73 0a 6f | more me|ssages.o|
|00004840| 6e 20 61 20 73 6f 63 6b | 65 74 20 2e 2e 2e 20 63 |n a sock|et ... c|
|00004850| 65 72 74 61 69 6e 6c 79 | 20 6e 6f 74 20 6f 6e 20 |ertainly| not on |
|00004860| 61 20 73 6f 63 6b 65 74 | 20 64 65 73 63 72 69 70 |a socket| descrip|
|00004870| 74 6f 72 20 74 68 61 74 | 20 69 73 20 6e 6f 20 6c |tor that| is no l|
|00004880| 6f 6e 67 65 72 0a 61 20 | 6c 65 67 61 6c 20 64 65 |onger.a |legal de|
|00004890| 73 63 72 69 70 74 6f 72 | 20 28 62 79 20 74 68 65 |scriptor| (by the|
|000048a0| 20 76 65 72 79 20 66 61 | 63 74 20 74 68 61 74 20 | very fa|ct that |
|000048b0| 79 6f 75 20 63 61 6c 6c | 65 64 20 63 6c 6f 73 65 |you call|ed close|
|000048c0| 73 6f 63 6b 65 74 28 29 | 29 2e 0a 0a 49 6e 20 61 |socket()|)...In a|
|000048d0| 64 64 69 74 69 6f 6e 2c | 20 77 68 79 20 77 6f 75 |ddition,| why wou|
|000048e0| 6c 64 20 79 6f 75 20 77 | 61 6e 74 20 74 68 65 20 |ld you w|ant the |
|000048f0| 46 49 4e 5f 57 41 49 54 | 20 6e 6f 74 69 66 69 63 |FIN_WAIT| notific|
|00004900| 61 74 69 6f 6e 3f 20 20 | 59 6f 75 20 6b 6e 65 77 |ation? |You knew|
|00004910| 0a 79 6f 75 20 63 61 6c | 6c 65 64 20 63 6c 6f 73 |.you cal|led clos|
|00004920| 65 73 6f 63 6b 65 74 28 | 29 20 2e 2e 2e 0a 0a 3e |esocket(|) .....>|
|00004930| 3e 20 53 6f 2c 20 77 68 | 65 6e 20 74 68 65 20 61 |> So, wh|en the a|
|00004940| 70 70 20 63 61 6c 6c 73 | 20 63 6c 6f 73 65 73 6f |pp calls| closeso|
|00004950| 63 6b 65 74 2c 20 69 74 | 20 6b 6e 6f 77 73 20 74 |cket, it| knows t|
|00004960| 68 61 74 20 69 74 20 22 | 73 68 6f 75 6c 64 22 20 |hat it "|should" |
|00004970| 67 65 74 20 61 6e 0a 3e | 3e 20 46 44 5f 43 4c 4f |get an.>|> FD_CLO|
|00004980| 53 45 20 61 6e 64 20 63 | 61 6e 20 61 63 74 20 61 |SE and c|an act a|
|00004990| 63 63 6f 72 64 69 6e 67 | 6c 79 20 28 6f 72 20 70 |ccording|ly (or p|
|000049a0| 6f 73 74 20 69 74 73 65 | 6c 66 20 74 68 65 20 46 |ost itse|lf the F|
|000049b0| 44 5f 43 4c 4f 53 45 2c | 20 69 66 20 69 74 0a 3e |D_CLOSE,| if it.>|
|000049c0| 3e 20 72 65 61 6c 6c 79 | 20 77 61 6e 74 73 20 74 |> really| wants t|
|000049d0| 6f 20 67 6f 20 74 68 61 | 74 20 72 6f 75 74 65 29 |o go tha|t route)|
|000049e0| 2e 0a 0a 41 20 73 74 72 | 61 77 20 65 78 61 6d 70 |...A str|aw examp|
|000049f0| 6c 65 2c 20 61 74 20 62 | 65 73 74 2e 20 20 54 68 |le, at b|est. Th|
|00004a00| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 63 6f |e applic|ation co|
|00004a10| 75 6c 64 20 68 61 76 65 | 20 61 20 66 75 6e 63 74 |uld have| a funct|
|00004a20| 69 6f 6e 20 74 6f 20 64 | 6f 0a 69 74 27 73 20 63 |ion to d|o.it's c|
|00004a30| 6c 65 61 6e 75 70 2c 20 | 77 68 69 63 68 20 63 6f |leanup, |which co|
|00004a40| 75 6c 64 20 62 65 20 63 | 61 6c 6c 65 64 20 61 66 |uld be c|alled af|
|00004a50| 74 65 72 20 63 6c 6f 73 | 65 73 6f 63 6b 65 74 28 |ter clos|esocket(|
|00004a60| 29 20 6f 72 20 61 66 74 | 65 72 20 67 65 74 74 69 |) or aft|er getti|
|00004a70| 6e 67 0a 61 6e 20 46 44 | 5f 43 4c 4f 53 45 20 6e |ng.an FD|_CLOSE n|
|00004a80| 6f 74 69 66 69 63 61 74 | 69 6f 6e 2e 20 20 47 6f |otificat|ion. Go|
|00004a90| 69 6e 67 20 74 68 72 6f | 75 67 68 20 74 68 65 20 |ing thro|ugh the |
|00004aa0| 4f 53 20 74 6f 20 6d 61 | 6b 65 20 74 68 65 20 65 |OS to ma|ke the e|
|00004ab0| 6e 74 72 79 20 70 6f 69 | 6e 74 0a 63 6f 6d 6d 6f |ntry poi|nt.commo|
|00004ac0| 6e 20 69 73 20 6f 6e 6c | 79 20 6e 65 63 65 73 73 |n is onl|y necess|
|00004ad0| 61 72 79 20 74 6f 20 6d | 61 6b 65 20 74 68 65 20 |ary to m|ake the |
|00004ae0| 63 6f 64 65 20 6c 6f 6f | 6b 20 61 20 6c 69 74 74 |code loo|k a litt|
|00004af0| 6c 65 20 62 69 74 20 63 | 6c 65 61 6e 65 72 2e 0a |le bit c|leaner..|
|00004b00| 0a 2d 2d 20 0a 42 72 61 | 64 20 57 69 6c 73 6f 6e |.-- .Bra|d Wilson|
|00004b10| 20 20 20 20 53 68 61 72 | 65 20 61 6e 64 20 45 6e | Shar|e and En|
|00004b20| 6a 6f 79 21 20 20 20 20 | 56 6f 69 63 65 3a 20 28 |joy! |Voice: (|
|00004b30| 38 30 30 29 32 38 32 2d | 34 46 54 50 20 20 20 46 |800)282-|4FTP F|
|00004b40| 61 78 3a 20 28 35 30 38 | 29 36 35 39 2d 36 32 39 |ax: (508|)659-629|
|00004b50| 37 0a 4e 6f 74 20 73 70 | 65 61 6b 69 6e 67 20 66 |7.Not sp|eaking f|
|00004b60| 6f 72 20 46 54 50 20 53 | 6f 66 74 77 61 72 65 2c |or FTP S|oftware,|
|00004b70| 20 49 6e 63 2e 20 20 20 | 20 20 20 49 6e 74 65 72 | Inc. | Inter|
|00004b80| 6e 65 74 3a 20 77 69 6c | 73 6f 6e 40 66 74 70 2e |net: wil|son@ftp.|
|00004b90| 63 6f 6d 20 20 20 20 20 | 6d 73 67 2b 2b 3b 0a 20 |com |msg++;. |
|00004ba0| 20 20 22 69 20 61 6d 20 | 74 68 65 20 62 75 6c 6c | "i am |the bull|
|00004bb0| 65 74 20 69 6e 20 74 68 | 65 20 67 75 6e 20 2f 20 |et in th|e gun / |
|00004bc0| 69 20 61 6d 20 74 68 65 | 20 74 72 75 74 68 20 66 |i am the| truth f|
|00004bd0| 72 6f 6d 20 77 68 69 63 | 68 20 79 6f 75 20 72 75 |rom whic|h you ru|
|00004be0| 6e 0a 20 20 20 20 69 20 | 61 6d 20 74 68 65 20 73 |n. i |am the s|
|00004bf0| 69 6c 65 6e 63 69 6e 67 | 20 6d 61 63 68 69 6e 65 |ilencing| machine|
|00004c00| 20 2f 20 69 20 61 6d 20 | 74 68 65 20 65 6e 64 20 | / i am |the end |
|00004c10| 6f 66 20 61 6c 6c 20 79 | 6f 75 72 20 64 72 65 61 |of all y|our drea|
|00004c20| 6d 73 22 20 20 2d 20 4e | 49 4e 0a 46 72 6f 6d 20 |ms" - N|IN.From |
|00004c30| 77 69 6c 73 6f 6e 40 66 | 74 70 2e 63 6f 6d 20 57 |wilson@f|tp.com W|
|00004c40| 65 64 20 4d 61 79 20 20 | 34 20 30 35 3a 32 37 3a |ed May |4 05:27:|
|00004c50| 33 36 20 31 39 39 34 0a | 52 65 63 65 69 76 65 64 |36 1994.|Received|
|00004c60| 3a 20 66 72 6f 6d 20 66 | 74 70 2e 63 6f 6d 20 28 |: from f|tp.com (|
|00004c70| 77 64 34 30 2e 66 74 70 | 2e 63 6f 6d 29 20 62 79 |wd40.ftp|.com) by|
|00004c80| 20 53 75 6e 53 49 54 45 | 2e 55 6e 63 2e 45 44 55 | SunSITE|.Unc.EDU|
|00004c90| 20 28 35 2e 36 35 63 2b | 49 44 41 2f 46 76 4b 2d | (5.65c+|IDA/FvK-|
|00004ca0| 31 2e 30 37 29 20 77 69 | 74 68 20 53 4d 54 50 0a |1.07) wi|th SMTP.|
|00004cb0| 20 20 20 20 20 20 20 20 | 20 20 69 64 20 41 41 31 | | id AA1|
|00004cc0| 31 35 33 31 3b 20 57 65 | 64 2c 20 34 20 4d 61 79 |1531; We|d, 4 May|
|00004cd0| 20 31 39 39 34 20 30 39 | 3a 32 37 3a 33 39 20 2d | 1994 09|:27:39 -|
|00004ce0| 30 34 30 30 0a 52 65 63 | 65 69 76 65 64 3a 20 62 |0400.Rec|eived: b|
|00004cf0| 79 20 66 74 70 2e 63 6f | 6d 20 20 3b 20 57 65 64 |y ftp.co|m ; Wed|
|00004d00| 2c 20 34 20 4d 61 79 20 | 31 39 39 34 20 30 39 3a |, 4 May |1994 09:|
|00004d10| 32 37 3a 33 36 20 2d 30 | 34 30 30 0a 52 65 63 65 |27:36 -0|400.Rece|
|00004d20| 69 76 65 64 3a 20 62 79 | 20 66 74 70 2e 63 6f 6d |ived: by| ftp.com|
|00004d30| 20 20 3b 20 57 65 64 2c | 20 34 20 4d 61 79 20 31 | ; Wed,| 4 May 1|
|00004d40| 39 39 34 20 30 39 3a 32 | 37 3a 33 36 20 2d 30 34 |994 09:2|7:36 -04|
|00004d50| 30 30 0a 46 72 6f 6d 3a | 20 77 69 6c 73 6f 6e 40 |00.From:| wilson@|
|00004d60| 66 74 70 2e 63 6f 6d 20 | 28 42 72 61 64 20 57 69 |ftp.com |(Brad Wi|
|00004d70| 6c 73 6f 6e 29 0a 4d 65 | 73 73 61 67 65 2d 49 64 |lson).Me|ssage-Id|
|00004d80| 3a 20 3c 39 34 30 35 30 | 34 31 33 32 37 2e 41 41 |: <94050|41327.AA|
|00004d90| 32 34 33 39 32 40 66 74 | 70 2e 63 6f 6d 3e 0a 53 |24392@ft|p.com>.S|
|00004da0| 75 62 6a 65 63 74 3a 20 | 52 65 3a 20 43 75 72 69 |ubject: |Re: Curi|
|00004db0| 6f 75 73 20 62 65 68 61 | 76 69 6f 75 72 20 66 72 |ous beha|viour fr|
|00004dc0| 6f 6d 20 77 69 6e 73 6f | 63 6b 0a 54 6f 3a 20 72 |om winso|ck.To: r|
|00004dd0| 63 71 40 66 74 70 2e 63 | 6f 6d 0a 44 61 74 65 3a |cq@ftp.c|om.Date:|
|00004de0| 20 57 65 64 2c 20 34 20 | 4d 61 79 20 31 39 39 34 | Wed, 4 |May 1994|
|00004df0| 20 30 39 3a 32 37 3a 33 | 36 20 2d 30 34 30 30 20 | 09:27:3|6 -0400 |
|00004e00| 28 45 44 54 29 0a 43 63 | 3a 20 77 69 6e 73 6f 63 |(EDT).Cc|: winsoc|
|00004e10| 6b 2d 68 61 63 6b 65 72 | 73 40 73 75 6e 73 69 74 |k-hacker|s@sunsit|
|00004e20| 65 2e 75 6e 63 2e 65 64 | 75 0a 49 6e 2d 52 65 70 |e.unc.ed|u.In-Rep|
|00004e30| 6c 79 2d 54 6f 3a 20 3c | 39 34 30 35 30 32 31 38 |ly-To: <|94050218|
|00004e40| 33 36 2e 41 41 32 34 37 | 38 36 40 6d 61 69 6c 73 |36.AA247|86@mails|
|00004e50| 65 72 76 2d 44 2e 66 74 | 70 2e 63 6f 6d 3e 20 66 |erv-D.ft|p.com> f|
|00004e60| 72 6f 6d 20 22 42 6f 62 | 20 51 75 69 6e 6e 22 20 |rom "Bob| Quinn" |
|00004e70| 61 74 20 4d 61 79 20 34 | 2c 20 39 34 20 30 33 3a |at May 4|, 94 03:|
|00004e80| 33 31 3a 33 30 20 61 6d | 0a 58 2d 4d 61 69 6c 65 |31:30 am|.X-Maile|
|00004e90| 72 3a 20 45 4c 4d 20 5b | 76 65 72 73 69 6f 6e 20 |r: ELM [|version |
|00004ea0| 32 2e 34 20 50 4c 32 33 | 5d 0a 4d 69 6d 65 2d 56 |2.4 PL23|].Mime-V|
|00004eb0| 65 72 73 69 6f 6e 3a 20 | 31 2e 30 0a 43 6f 6e 74 |ersion: |1.0.Cont|
|00004ec0| 65 6e 74 2d 54 79 70 65 | 3a 20 74 65 78 74 2f 70 |ent-Type|: text/p|
|00004ed0| 6c 61 69 6e 3b 20 63 68 | 61 72 73 65 74 3d 55 53 |lain; ch|arset=US|
|00004ee0| 2d 41 53 43 49 49 0a 43 | 6f 6e 74 65 6e 74 2d 54 |-ASCII.C|ontent-T|
|00004ef0| 72 61 6e 73 66 65 72 2d | 45 6e 63 6f 64 69 6e 67 |ransfer-|Encoding|
|00004f00| 3a 20 37 62 69 74 0a 43 | 6f 6e 74 65 6e 74 2d 4c |: 7bit.C|ontent-L|
|00004f10| 65 6e 67 74 68 3a 20 31 | 32 31 38 20 20 20 20 20 |ength: 1|218 |
|00004f20| 20 0a 0a 3e 3e 20 53 6f | 2c 20 69 6e 20 74 68 65 | ..>> So|, in the|
|00004f30| 20 66 69 6e 61 6c 20 61 | 6e 61 6c 79 73 69 73 20 | final a|nalysis |
|00004f40| 6f 6e 20 61 20 6e 6f 6e | 2d 62 6c 6f 63 6b 69 6e |on a non|-blockin|
|00004f50| 67 20 63 6c 6f 73 65 20 | 74 68 65 72 65 27 73 20 |g close |there's |
|00004f60| 6e 6f 20 77 61 79 0a 3e | 3e 20 66 6f 72 20 79 6f |no way.>|> for yo|
|00004f70| 75 20 74 6f 20 6b 6e 6f | 77 20 69 66 20 79 6f 75 |u to kno|w if you|
|00004f80| 20 63 6f 6d 70 6c 65 74 | 65 64 20 61 20 67 72 61 | complet|ed a gra|
|00004f90| 63 65 66 75 6c 6c 79 20 | 6f 72 20 6e 6f 74 2e 20 |cefully |or not. |
|00004fa0| 20 44 6f 65 73 20 74 68 | 69 73 0a 3e 3e 20 73 6f | Does th|is.>> so|
|00004fb0| 75 6e 64 20 62 72 6f 6b | 65 6e 20 74 6f 20 61 6e |und brok|en to an|
|00004fc0| 79 6f 6e 65 20 65 6c 73 | 65 20 62 75 74 20 6d 65 |yone els|e but me|
|00004fd0| 3f 0a 0a 4f 74 68 65 72 | 20 74 68 61 6e 20 74 68 |?..Other| than th|
|00004fe0| 65 20 22 70 65 61 63 65 | 20 6f 66 20 6d 69 6e 64 |e "peace| of mind|
|00004ff0| 22 20 61 72 67 75 6d 65 | 6e 74 20 79 6f 75 20 67 |" argume|nt you g|
|00005000| 61 76 65 20 6d 65 20 69 | 6e 20 74 68 65 20 6f 66 |ave me i|n the of|
|00005010| 66 69 63 65 20 3b 2d 29 | 2c 0a 49 20 63 61 6e 27 |fice ;-)|,.I can'|
|00005020| 74 20 73 65 65 20 61 6e | 79 20 72 65 61 73 6f 6e |t see an|y reason|
|00005030| 2e 20 20 49 66 20 74 68 | 65 20 61 70 70 20 69 73 |. If th|e app is|
|00005040| 20 69 6e 74 65 72 65 73 | 74 65 64 2c 20 69 74 20 | interes|ted, it |
|00005050| 63 61 6e 20 63 61 6c 6c | 20 74 68 65 0a 62 6c 6f |can call| the.blo|
|00005060| 63 6b 69 6e 67 20 63 6c | 6f 73 65 2e 20 20 4c 69 |cking cl|ose. Li|
|00005070| 6b 65 20 69 74 20 6f 72 | 20 6e 6f 74 2c 20 74 68 |ke it or| not, th|
|00005080| 65 20 70 61 72 61 64 69 | 67 6d 20 73 61 79 73 20 |e paradi|gm says |
|00005090| 74 68 61 74 20 61 20 73 | 6f 63 6b 65 74 0a 64 65 |that a s|ocket.de|
|000050a0| 73 63 72 69 70 74 6f 72 | 20 62 65 63 6f 6d 65 73 |scriptor| becomes|
|000050b0| 20 69 6e 76 61 6c 69 64 | 20 77 68 65 6e 20 79 6f | invalid| when yo|
|000050c0| 75 20 63 61 6c 6c 20 63 | 6c 6f 73 65 73 6f 63 6b |u call c|losesock|
|000050d0| 65 74 28 29 2e 20 20 49 | 74 20 73 65 65 6d 73 20 |et(). I|t seems |
|000050e0| 62 72 6f 6b 65 6e 0a 49 | 4d 48 4f 20 74 6f 20 73 |broken.I|MHO to s|
|000050f0| 65 6e 64 20 6d 65 73 73 | 61 67 65 73 20 6f 6e 20 |end mess|ages on |
|00005100| 61 6e 20 61 6c 72 65 61 | 64 79 20 63 6c 6f 73 65 |an alrea|dy close|
|00005110| 64 20 73 6f 63 6b 65 74 | 2e 0a 0a 54 68 65 72 65 |d socket|...There|
|00005120| 20 69 73 20 61 6c 77 61 | 79 73 20 74 68 65 20 63 | is alwa|ys the c|
|00005130| 61 73 65 20 6f 66 20 66 | 69 78 69 6e 67 20 74 68 |ase of f|ixing th|
|00005140| 65 20 73 70 65 63 20 61 | 6e 64 20 74 68 65 6e 2c |e spec a|nd then,|
|00005150| 20 69 66 20 74 68 65 20 | 61 70 70 20 77 72 69 74 | if the |app writ|
|00005160| 65 72 0a 69 73 20 74 72 | 75 6c 79 20 69 6e 74 65 |er.is tr|uly inte|
|00005170| 72 65 73 74 65 64 2c 20 | 63 61 6c 6c 69 6e 67 20 |rested, |calling |
|00005180| 73 68 75 74 64 6f 77 6e | 28 29 20 6f 6e 20 74 68 |shutdown|() on th|
|00005190| 65 20 77 72 69 74 65 20 | 73 69 64 65 20 6f 66 20 |e write |side of |
|000051a0| 74 68 65 20 73 6f 63 6b | 65 74 0a 61 6e 64 20 77 |the sock|et.and w|
|000051b0| 61 69 74 69 6e 67 20 66 | 6f 72 20 74 68 65 20 46 |aiting f|or the F|
|000051c0| 44 5f 43 4c 4f 53 45 2c | 20 74 68 65 6e 20 63 6c |D_CLOSE,| then cl|
|000051d0| 6f 73 69 6e 67 20 74 68 | 65 20 73 6f 63 6b 65 74 |osing th|e socket|
|000051e0| 2e 20 20 57 69 74 68 6f | 75 74 20 74 68 65 20 73 |. Witho|ut the s|
|000051f0| 70 65 63 0a 69 6e 20 6d | 79 20 68 61 6e 64 20 28 |pec.in m|y hand (|
|00005200| 77 68 65 72 65 20 64 69 | 64 20 74 68 61 74 20 67 |where di|d that g|
|00005210| 6f 3f 20 3b 2d 29 2c 20 | 49 20 63 61 6e 27 74 20 |o? ;-), |I can't |
|00005220| 74 65 6c 6c 20 69 66 20 | 74 68 61 74 20 73 63 65 |tell if |that sce|
|00005230| 6e 61 72 69 6f 20 69 73 | 0a 71 75 69 74 65 20 70 |nario is|.quite p|
|00005240| 6f 73 73 69 62 6c 65 20 | 2f 20 70 6c 61 75 73 69 |ossible |/ plausi|
|00005250| 62 6c 65 20 77 69 74 68 | 20 74 68 65 20 63 75 72 |ble with| the cur|
|00005260| 72 65 6e 74 20 77 6f 72 | 64 69 6e 67 20 6f 66 20 |rent wor|ding of |
|00005270| 74 68 65 20 73 70 65 63 | 2e 20 20 49 74 0a 63 65 |the spec|. It.ce|
|00005280| 72 74 61 69 6e 6c 79 20 | 73 65 65 6d 73 20 6c 69 |rtainly |seems li|
|00005290| 6b 65 20 61 20 32 2e 30 | 20 69 73 73 75 65 20 74 |ke a 2.0| issue t|
|000052a0| 6f 20 6d 65 20 28 64 69 | 64 20 49 20 73 61 79 20 |o me (di|d I say |
|000052b0| 74 68 61 74 3f 20 3b 2d | 29 0a 0a 2d 2d 20 0a 42 |that? ;-|)..-- .B|
|000052c0| 72 61 64 20 57 69 6c 73 | 6f 6e 20 20 20 20 53 68 |rad Wils|on Sh|
|000052d0| 61 72 65 20 61 6e 64 20 | 45 6e 6a 6f 79 21 20 20 |are and |Enjoy! |
|000052e0| 20 20 56 6f 69 63 65 3a | 20 28 38 30 30 29 32 38 | Voice:| (800)28|
|000052f0| 32 2d 34 46 54 50 20 20 | 20 46 61 78 3a 20 28 35 |2-4FTP | Fax: (5|
|00005300| 30 38 29 36 35 39 2d 36 | 32 39 37 0a 4e 6f 74 20 |08)659-6|297.Not |
|00005310| 73 70 65 61 6b 69 6e 67 | 20 66 6f 72 20 46 54 50 |speaking| for FTP|
|00005320| 20 53 6f 66 74 77 61 72 | 65 2c 20 49 6e 63 2e 20 | Softwar|e, Inc. |
|00005330| 20 20 20 20 20 49 6e 74 | 65 72 6e 65 74 3a 20 77 | Int|ernet: w|
|00005340| 69 6c 73 6f 6e 40 66 74 | 70 2e 63 6f 6d 20 20 20 |ilson@ft|p.com |
|00005350| 20 20 6d 73 67 2b 2b 3b | 0a 20 20 20 22 69 20 61 | msg++;|. "i a|
|00005360| 6d 20 74 68 65 20 62 75 | 6c 6c 65 74 20 69 6e 20 |m the bu|llet in |
|00005370| 74 68 65 20 67 75 6e 20 | 2f 20 69 20 61 6d 20 74 |the gun |/ i am t|
|00005380| 68 65 20 74 72 75 74 68 | 20 66 72 6f 6d 20 77 68 |he truth| from wh|
|00005390| 69 63 68 20 79 6f 75 20 | 72 75 6e 0a 20 20 20 20 |ich you |run. |
|000053a0| 69 20 61 6d 20 74 68 65 | 20 73 69 6c 65 6e 63 69 |i am the| silenci|
|000053b0| 6e 67 20 6d 61 63 68 69 | 6e 65 20 2f 20 69 20 61 |ng machi|ne / i a|
|000053c0| 6d 20 74 68 65 20 65 6e | 64 20 6f 66 20 61 6c 6c |m the en|d of all|
|000053d0| 20 79 6f 75 72 20 64 72 | 65 61 6d 73 22 20 20 2d | your dr|eams" -|
|000053e0| 20 4e 49 4e 0a 46 72 6f | 6d 20 62 72 75 63 65 40 | NIN.Fro|m bruce@|
|000053f0| 69 73 69 2e 46 72 6f 6e | 74 69 65 72 54 65 63 68 |isi.Fron|tierTech|
|00005400| 2e 43 4f 4d 20 57 65 64 | 20 4d 61 79 20 20 34 20 |.COM Wed| May 4 |
|00005410| 30 32 3a 34 31 3a 31 34 | 20 31 39 39 34 0a 52 65 |02:41:14| 1994.Re|
|00005420| 63 65 69 76 65 64 3a 20 | 66 72 6f 6d 20 69 73 69 |ceived: |from isi|
|00005430| 2e 46 72 6f 6e 74 69 65 | 72 54 65 63 68 2e 43 4f |.Frontie|rTech.CO|
|00005440| 4d 20 62 79 20 53 75 6e | 53 49 54 45 2e 55 6e 63 |M by Sun|SITE.Unc|
|00005450| 2e 45 44 55 20 28 35 2e | 36 35 63 2b 49 44 41 2f |.EDU (5.|65c+IDA/|
|00005460| 46 76 4b 2d 31 2e 30 37 | 29 20 77 69 74 68 20 53 |FvK-1.07|) with S|
|00005470| 4d 54 50 0a 20 20 20 20 | 20 20 20 20 20 20 69 64 |MTP. | id|
|00005480| 20 41 41 31 33 39 31 38 | 3b 20 57 65 64 2c 20 34 | AA13918|; Wed, 4|
|00005490| 20 4d 61 79 20 31 39 39 | 34 20 30 39 3a 34 30 3a | May 199|4 09:40:|
|000054a0| 35 31 20 2d 30 34 30 30 | 0a 52 65 63 65 69 76 65 |51 -0400|.Receive|
|000054b0| 64 3a 20 66 72 6f 6d 20 | 62 72 75 63 65 73 2e 46 |d: from |bruces.F|
|000054c0| 72 6f 6e 74 69 65 72 54 | 65 63 68 2e 43 4f 4d 20 |rontierT|ech.COM |
|000054d0| 62 79 20 69 73 69 2e 46 | 72 6f 6e 74 69 65 72 54 |by isi.F|rontierT|
|000054e0| 65 63 68 2e 43 4f 4d 20 | 28 35 2e 36 35 2f 31 2e |ech.COM |(5.65/1.|
|000054f0| 34 30 29 0a 09 69 64 20 | 41 41 30 34 32 36 36 3b |40)..id |AA04266;|
|00005500| 20 57 65 64 2c 20 34 20 | 4d 61 79 20 39 34 20 30 | Wed, 4 |May 94 0|
|00005510| 38 3a 33 39 3a 34 34 20 | 2d 30 35 30 30 0a 58 2d |8:39:44 |-0500.X-|
|00005520| 4d 61 69 6c 65 72 3a 20 | 53 75 70 65 72 54 43 50 |Mailer: |SuperTCP|
|00005530| 2f 4e 46 53 20 66 6f 72 | 20 57 69 6e 64 6f 77 73 |/NFS for| Windows|
|00005540| 20 56 65 72 73 69 6f 6e | 20 34 2e 30 30 20 28 4d | Version| 4.00 (M|
|00005550| 61 69 6c 65 72 20 56 65 | 72 73 69 6f 6e 20 31 2e |ailer Ve|rsion 1.|
|00005560| 30 32 29 0a 4d 65 73 73 | 61 67 65 2d 49 64 3a 20 |02).Mess|age-Id: |
|00005570| 3c 32 44 43 37 42 34 30 | 43 2d 30 30 30 30 30 30 |<2DC7B40|C-000000|
|00005580| 30 31 40 42 72 75 63 65 | 73 2e 46 72 6f 6e 74 69 |01@Bruce|s.Fronti|
|00005590| 65 72 54 65 63 68 2e 43 | 4f 4d 3e 0a 46 72 6f 6d |erTech.C|OM>.From|
|000055a0| 3a 20 42 72 75 63 65 40 | 69 73 69 2e 46 72 6f 6e |: Bruce@|isi.Fron|
|000055b0| 74 69 65 72 54 65 63 68 | 2e 43 4f 4d 0a 44 61 74 |tierTech|.COM.Dat|
|000055c0| 65 3a 20 57 65 64 2c 20 | 30 34 20 4d 61 79 20 39 |e: Wed, |04 May 9|
|000055d0| 34 20 30 38 3a 34 31 3a | 31 34 20 43 53 54 0a 53 |4 08:41:|14 CST.S|
|000055e0| 75 62 6a 65 63 74 3a 20 | 46 44 5f 43 4c 4f 53 45 |ubject: |FD_CLOSE|
|000055f0| 20 61 66 74 65 72 20 63 | 6c 6f 73 65 73 6f 63 6b | after c|losesock|
|00005600| 65 74 20 28 77 61 73 3a | 20 43 75 72 69 6f 75 73 |et (was:| Curious|
|00005610| 20 62 65 68 61 76 69 6f | 75 72 20 66 72 6f 6d 20 | behavio|ur from |
|00005620| 77 69 6e 73 6f 63 6b 29 | 0a 54 6f 3a 20 77 69 6e |winsock)|.To: win|
|00005630| 73 6f 63 6b 2d 68 61 63 | 6b 65 72 73 40 73 75 6e |sock-hac|kers@sun|
|00005640| 73 69 74 65 2e 75 6e 63 | 2e 65 64 75 0a 43 63 3a |site.unc|.edu.Cc:|
|00005650| 20 77 69 6c 73 6f 6e 40 | 66 74 70 2e 63 6f 6d 20 | wilson@|ftp.com |
|00005660| 28 42 72 61 64 20 57 69 | 6c 73 6f 6e 29 0a 4d 69 |(Brad Wi|lson).Mi|
|00005670| 6d 65 2d 56 65 72 73 69 | 6f 6e 3a 20 31 2e 30 0a |me-Versi|on: 1.0.|
|00005680| 43 6f 6e 74 65 6e 74 2d | 54 79 70 65 3a 20 54 65 |Content-|Type: Te|
|00005690| 78 74 2f 50 6c 61 69 6e | 3b 20 43 68 61 72 73 65 |xt/Plain|; Charse|
|000056a0| 74 3d 55 53 2d 41 53 43 | 49 49 0a 0a 20 20 28 69 |t=US-ASC|II.. (i|
|000056b0| 6e 20 72 65 70 6c 79 20 | 74 6f 20 42 72 61 64 20 |n reply |to Brad |
|000056c0| 57 69 6c 73 6f 6e 27 73 | 20 6d 65 73 73 61 67 65 |Wilson's| message|
|000056d0| 2c 20 71 75 6f 74 65 64 | 20 62 65 6c 6f 77 29 0a |, quoted| below).|
|000056e0| 49 74 20 73 6f 72 74 20 | 6f 66 20 73 6f 75 6e 64 |It sort |of sound|
|000056f0| 73 20 6c 69 6b 65 20 79 | 6f 75 27 72 65 20 61 67 |s like y|ou're ag|
|00005700| 72 65 65 69 6e 67 20 77 | 69 74 68 20 6d 65 2c 20 |reeing w|ith me, |
|00005710| 74 68 61 74 20 74 68 65 | 20 46 44 5f 43 4c 4f 53 |that the| FD_CLOS|
|00005720| 45 20 69 73 0a 75 6e 6e | 65 63 65 73 73 61 72 79 |E is.unn|ecessary|
|00005730| 20 61 66 74 65 72 20 74 | 68 65 20 63 6c 6f 73 65 | after t|he close|
|00005740| 73 6f 63 6b 65 74 2e 20 | 20 49 20 74 68 69 6e 6b |socket. | I think|
|00005750| 20 74 68 65 20 73 74 61 | 74 65 6d 65 6e 74 20 74 | the sta|tement t|
|00005760| 68 61 74 20 63 6c 6f 73 | 65 73 6f 63 6b 65 74 0a |hat clos|esocket.|
|00005770| 63 61 6e 63 65 6c 73 20 | 61 73 79 6e 63 20 6e 6f |cancels |async no|
|00005780| 74 69 66 69 63 61 74 69 | 6f 6e 73 20 74 61 6b 65 |tificati|ons take|
|00005790| 73 20 70 72 65 63 65 64 | 65 6e 63 65 2c 20 61 6e |s preced|ence, an|
|000057a0| 64 20 69 66 20 61 6e 20 | 61 70 70 20 72 65 61 6c |d if an |app real|
|000057b0| 6c 79 20 6e 65 65 64 73 | 0a 74 6f 20 66 69 6e 64 |ly needs|.to find|
|000057c0| 20 6f 75 74 20 69 66 20 | 74 68 65 20 63 6f 6e 6e | out if |the conn|
|000057d0| 65 63 74 69 6f 6e 20 63 | 6c 6f 73 65 64 20 67 72 |ection c|losed gr|
|000057e0| 61 63 65 66 75 6c 6c 79 | 2c 20 69 74 20 73 68 6f |acefully|, it sho|
|000057f0| 75 6c 64 20 68 61 6e 67 | 20 6f 6e 74 6f 20 74 68 |uld hang| onto th|
|00005800| 65 0a 64 65 73 63 72 69 | 70 74 6f 72 2c 20 75 73 |e.descri|ptor, us|
|00005810| 65 20 73 68 75 74 64 6f | 77 6e 28 31 29 20 74 6f |e shutdo|wn(1) to|
|00005820| 20 73 65 6e 64 20 61 20 | 46 49 4e 2c 20 74 68 65 | send a |FIN, the|
|00005830| 6e 20 72 65 61 64 20 74 | 6f 20 45 4f 46 2e 20 20 |n read t|o EOF. |
|00005840| 49 4d 48 4f 2c 0a 63 61 | 6c 6c 69 6e 67 20 63 6c |IMHO,.ca|lling cl|
|00005850| 6f 73 65 73 6f 63 6b 65 | 74 20 73 61 79 73 20 22 |osesocke|t says "|
|00005860| 49 20 61 6d 20 64 6f 6e | 65 20 77 69 74 68 20 74 |I am don|e with t|
|00005870| 68 69 73 20 73 6f 63 6b | 65 74 2c 20 61 6e 64 20 |his sock|et, and |
|00005880| 68 61 76 65 20 6e 6f 20 | 66 75 72 74 68 65 72 0a |have no |further.|
|00005890| 69 6e 74 65 72 65 73 74 | 20 69 6e 20 61 6e 79 74 |interest| in anyt|
|000058a0| 68 69 6e 67 20 61 73 73 | 6f 63 69 61 74 65 64 20 |hing ass|ociated |
|000058b0| 77 69 74 68 20 69 74 2e | 22 20 20 0a 49 20 73 74 |with it.|" .I st|
|000058c0| 69 6c 6c 20 6d 61 69 6e | 74 61 69 6e 20 74 68 61 |ill main|tain tha|
|000058d0| 74 20 63 6c 6f 73 65 73 | 6f 63 6b 65 74 20 69 6e |t closes|ocket in|
|000058e0| 76 61 6c 69 64 61 74 65 | 73 20 74 68 65 20 64 65 |validate|s the de|
|000058f0| 73 63 72 69 70 74 6f 72 | 20 61 6e 64 20 77 68 61 |scriptor| and wha|
|00005900| 74 0a 77 6f 75 6c 64 20 | 61 6e 20 61 70 70 20 64 |t.would |an app d|
|00005910| 6f 20 69 66 20 69 74 20 | 64 69 64 6e 27 74 20 67 |o if it |didn't g|
|00005920| 65 74 20 74 68 65 20 46 | 44 5f 43 4c 4f 53 45 20 |et the F|D_CLOSE |
|00005930| 69 74 20 65 78 70 65 63 | 74 65 64 3f 20 20 52 65 |it expec|ted? Re|
|00005940| 73 65 74 20 74 68 65 0a | 63 6f 6e 6e 65 63 74 69 |set the.|connecti|
|00005950| 6f 6e 3f 20 20 49 74 20 | 63 61 6e 27 74 2c 20 62 |on? It |can't, b|
|00005960| 65 63 61 75 73 65 20 69 | 74 20 68 61 73 20 6e 6f |ecause i|t has no|
|00005970| 20 72 65 66 65 72 65 6e | 63 65 20 74 6f 20 74 68 | referen|ce to th|
|00005980| 65 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 20 6e 6f 77 |e connec|tion now|
|00005990| 0a 74 68 61 74 20 74 68 | 65 20 73 6f 63 6b 65 74 |.that th|e socket|
|000059a0| 20 64 65 73 63 72 69 70 | 74 6f 72 20 69 73 20 67 | descrip|tor is g|
|000059b0| 6f 6e 65 2e 20 20 20 49 | 74 20 6d 69 67 68 74 20 |one. I|t might |
|000059c0| 64 69 73 70 6c 61 79 20 | 61 20 77 61 72 6e 69 6e |display |a warnin|
|000059d0| 67 20 74 6f 20 74 68 65 | 0a 75 73 65 72 2c 20 62 |g to the|.user, b|
|000059e0| 75 74 20 73 69 6e 63 65 | 20 69 74 20 63 61 6e 27 |ut since| it can'|
|000059f0| 74 20 74 61 6b 65 20 61 | 6e 79 20 6d 65 61 6e 69 |t take a|ny meani|
|00005a00| 6e 67 66 75 6c 20 73 74 | 65 70 73 20 74 6f 20 63 |ngful st|eps to c|
|00005a10| 6f 72 72 65 63 74 20 74 | 68 65 20 70 72 6f 62 6c |orrect t|he probl|
|00005a20| 65 6d 2c 0a 74 68 69 73 | 20 77 6f 75 6c 64 20 61 |em,.this| would a|
|00005a30| 6d 6f 75 6e 74 20 74 6f | 20 22 49 27 76 65 20 66 |mount to| "I've f|
|00005a40| 61 6c 6c 65 6e 2c 20 61 | 6e 64 20 49 20 63 61 6e |allen, a|nd I can|
|00005a50| 27 74 20 67 65 74 20 75 | 70 21 22 0a 0a 2d 2d 2d |'t get u|p!"..---|
|00005a60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005a70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 42 |--------|------.B|
|00005a80| 72 61 64 20 57 69 6c 73 | 6f 6e 20 77 72 6f 74 65 |rad Wils|on wrote|
|00005a90| 3a 0a 3e 3e 3e 20 53 65 | 6e 64 69 6e 67 20 74 68 |:.>>> Se|nding th|
|00005aa0| 65 20 46 49 4e 20 77 6f | 75 6c 64 20 70 75 74 20 |e FIN wo|uld put |
|00005ab0| 74 68 65 20 63 6f 6e 6e | 65 63 74 69 6f 6e 20 69 |the conn|ection i|
|00005ac0| 6e 20 46 49 4e 5f 57 41 | 49 54 20 73 74 61 74 65 |n FIN_WA|IT state|
|00005ad0| 2c 20 73 6f 20 74 68 65 | 0a 3e 3e 3e 20 46 44 5f |, so the|.>>> FD_|
|00005ae0| 43 4c 4f 53 45 20 77 6f | 75 6c 64 2c 20 74 68 65 |CLOSE wo|uld, the|
|00005af0| 6f 72 65 74 69 63 61 6c | 6c 79 2c 20 62 65 20 70 |oretical|ly, be p|
|00005b00| 6f 73 74 65 64 20 69 6d | 6d 65 64 69 61 74 65 6c |osted im|mediatel|
|00005b10| 79 20 69 6e 20 63 6c 6f | 73 65 73 6f 63 6b 65 74 |y in clo|sesocket|
|00005b20| 28 29 2e 0a 3e 0a 3e 57 | 68 61 74 20 70 75 72 70 |()..>.>W|hat purp|
|00005b30| 6f 73 65 20 64 6f 65 73 | 20 74 68 69 73 20 73 65 |ose does| this se|
|00005b40| 72 76 65 3f 20 20 54 6f | 20 76 61 6c 69 64 61 74 |rve? To| validat|
|00005b50| 65 20 74 68 61 74 20 79 | 6f 75 20 72 65 61 6c 6c |e that y|ou reall|
|00005b60| 79 20 64 69 64 20 63 6c | 6f 73 65 20 74 68 65 0a |y did cl|ose the.|
|00005b70| 3e 73 6f 63 6b 65 74 3f | 20 20 3b 2d 29 20 20 49 |>socket?| ;-) I|
|00005b80| 4d 48 4f 2c 20 74 68 65 | 20 73 70 65 63 20 69 73 |MHO, the| spec is|
|00005b90| 20 62 72 6f 6b 65 6e 20 | 69 73 20 74 68 69 73 20 | broken |is this |
|00005ba0| 72 65 73 70 65 63 74 2c | 20 62 65 63 61 75 73 65 |respect,| because|
|00005bb0| 20 69 74 20 73 61 79 73 | 0a 3e 28 74 68 65 73 65 | it says|.>(these|
|00005bc0| 20 61 72 65 20 66 72 6f | 6d 20 6d 65 6d 6f 72 79 | are fro|m memory|
|00005bd0| 29 3a 0a 3e 0a 3e 20 20 | 20 20 20 20 20 31 2e 20 |):.>.> | 1. |
|00005be0| 63 61 6c 6c 69 6e 67 20 | 63 6c 6f 73 65 73 6f 63 |calling |closesoc|
|00005bf0| 6b 65 74 28 29 20 63 61 | 6e 63 65 6c 73 20 61 6c |ket() ca|ncels al|
|00005c00| 6c 20 61 73 79 6e 63 20 | 6e 6f 74 69 66 69 63 61 |l async |notifica|
|00005c10| 74 69 6f 6e 0a 3e 20 20 | 20 20 20 20 20 32 2e 20 |tion.> | 2. |
|00005c20| 74 68 65 20 73 74 61 63 | 6b 20 67 65 74 73 20 61 |the stac|k gets a|
|00005c30| 20 46 44 5f 43 4c 4f 53 | 45 20 61 74 20 46 49 4e | FD_CLOS|E at FIN|
|00005c40| 5f 57 41 49 54 0a 3e 0a | 3e 49 6e 20 74 68 65 20 |_WAIT.>.|>In the |
|00005c50| 63 61 73 65 20 77 68 65 | 72 65 20 79 6f 75 20 63 |case whe|re you c|
|00005c60| 61 6c 6c 20 63 6c 6f 73 | 65 73 6f 63 6b 65 74 28 |all clos|esocket(|
|00005c70| 29 2c 20 77 68 69 63 68 | 20 74 61 6b 65 73 20 70 |), which| takes p|
|00005c80| 72 65 63 65 64 65 6e 63 | 65 3f 20 20 53 69 6e 63 |recedenc|e? Sinc|
|00005c90| 65 0a 3e 79 6f 75 20 63 | 61 6c 6c 65 64 20 63 6c |e.>you c|alled cl|
|00005ca0| 6f 73 65 73 6f 63 6b 65 | 74 28 29 2c 20 79 6f 75 |osesocke|t(), you|
|00005cb0| 20 73 68 6f 75 6c 64 6e | 27 74 20 65 78 70 65 63 | shouldn|'t expec|
|00005cc0| 74 20 74 6f 20 73 65 65 | 20 61 6e 79 20 6d 6f 72 |t to see| any mor|
|00005cd0| 65 20 6d 65 73 73 61 67 | 65 73 0a 3e 6f 6e 20 61 |e messag|es.>on a|
|00005ce0| 20 73 6f 63 6b 65 74 20 | 2e 2e 2e 20 63 65 72 74 | socket |... cert|
|00005cf0| 61 69 6e 6c 79 20 6e 6f | 74 20 6f 6e 20 61 20 73 |ainly no|t on a s|
|00005d00| 6f 63 6b 65 74 20 64 65 | 73 63 72 69 70 74 6f 72 |ocket de|scriptor|
|00005d10| 20 74 68 61 74 20 69 73 | 20 6e 6f 20 6c 6f 6e 67 | that is| no long|
|00005d20| 65 72 0a 3e 61 20 6c 65 | 67 61 6c 20 64 65 73 63 |er.>a le|gal desc|
|00005d30| 72 69 70 74 6f 72 20 28 | 62 79 20 74 68 65 20 76 |riptor (|by the v|
|00005d40| 65 72 79 20 66 61 63 74 | 20 74 68 61 74 20 79 6f |ery fact| that yo|
|00005d50| 75 20 63 61 6c 6c 65 64 | 20 63 6c 6f 73 65 73 6f |u called| closeso|
|00005d60| 63 6b 65 74 28 29 29 2e | 0a 3e 0a 3e 49 6e 20 61 |cket()).|.>.>In a|
|00005d70| 64 64 69 74 69 6f 6e 2c | 20 77 68 79 20 77 6f 75 |ddition,| why wou|
|00005d80| 6c 64 20 79 6f 75 20 77 | 61 6e 74 20 74 68 65 20 |ld you w|ant the |
|00005d90| 46 49 4e 5f 57 41 49 54 | 20 6e 6f 74 69 66 69 63 |FIN_WAIT| notific|
|00005da0| 61 74 69 6f 6e 3f 20 20 | 59 6f 75 20 6b 6e 65 77 |ation? |You knew|
|00005db0| 0a 3e 79 6f 75 20 63 61 | 6c 6c 65 64 20 63 6c 6f |.>you ca|lled clo|
|00005dc0| 73 65 73 6f 63 6b 65 74 | 28 29 20 2e 2e 2e 0a 3e |sesocket|() ....>|
|00005dd0| 0a 3e 3e 3e 20 53 6f 2c | 20 77 68 65 6e 20 74 68 |.>>> So,| when th|
|00005de0| 65 20 61 70 70 20 63 61 | 6c 6c 73 20 63 6c 6f 73 |e app ca|lls clos|
|00005df0| 65 73 6f 63 6b 65 74 2c | 20 69 74 20 6b 6e 6f 77 |esocket,| it know|
|00005e00| 73 20 74 68 61 74 20 69 | 74 20 22 73 68 6f 75 6c |s that i|t "shoul|
|00005e10| 64 22 20 67 65 74 20 61 | 6e 0a 3e 3e 3e 20 46 44 |d" get a|n.>>> FD|
|00005e20| 5f 43 4c 4f 53 45 20 61 | 6e 64 20 63 61 6e 20 61 |_CLOSE a|nd can a|
|00005e30| 63 74 20 61 63 63 6f 72 | 64 69 6e 67 6c 79 20 28 |ct accor|dingly (|
|00005e40| 6f 72 20 70 6f 73 74 20 | 69 74 73 65 6c 66 20 74 |or post |itself t|
|00005e50| 68 65 20 46 44 5f 43 4c | 4f 53 45 2c 20 69 66 20 |he FD_CL|OSE, if |
|00005e60| 69 74 0a 3e 3e 3e 20 72 | 65 61 6c 6c 79 20 77 61 |it.>>> r|eally wa|
|00005e70| 6e 74 73 20 74 6f 20 67 | 6f 20 74 68 61 74 20 72 |nts to g|o that r|
|00005e80| 6f 75 74 65 29 2e 0a 3e | 0a 3e 41 20 73 74 72 61 |oute)..>|.>A stra|
|00005e90| 77 20 65 78 61 6d 70 6c | 65 2c 20 61 74 20 62 65 |w exampl|e, at be|
|00005ea0| 73 74 2e 20 20 54 68 65 | 20 61 70 70 6c 69 63 61 |st. The| applica|
|00005eb0| 74 69 6f 6e 20 63 6f 75 | 6c 64 20 68 61 76 65 20 |tion cou|ld have |
|00005ec0| 61 20 66 75 6e 63 74 69 | 6f 6e 20 74 6f 20 64 6f |a functi|on to do|
|00005ed0| 0a 3e 69 74 27 73 20 63 | 6c 65 61 6e 75 70 2c 20 |.>it's c|leanup, |
|00005ee0| 77 68 69 63 68 20 63 6f | 75 6c 64 20 62 65 20 63 |which co|uld be c|
|00005ef0| 61 6c 6c 65 64 20 61 66 | 74 65 72 20 63 6c 6f 73 |alled af|ter clos|
|00005f00| 65 73 6f 63 6b 65 74 28 | 29 20 6f 72 20 61 66 74 |esocket(|) or aft|
|00005f10| 65 72 20 67 65 74 74 69 | 6e 67 0a 3e 61 6e 20 46 |er getti|ng.>an F|
|00005f20| 44 5f 43 4c 4f 53 45 20 | 6e 6f 74 69 66 69 63 61 |D_CLOSE |notifica|
|00005f30| 74 69 6f 6e 2e 20 20 47 | 6f 69 6e 67 20 74 68 72 |tion. G|oing thr|
|00005f40| 6f 75 67 68 20 74 68 65 | 20 4f 53 20 74 6f 20 6d |ough the| OS to m|
|00005f50| 61 6b 65 20 74 68 65 20 | 65 6e 74 72 79 20 70 6f |ake the |entry po|
|00005f60| 69 6e 74 0a 3e 63 6f 6d | 6d 6f 6e 20 69 73 20 6f |int.>com|mon is o|
|00005f70| 6e 6c 79 20 6e 65 63 65 | 73 73 61 72 79 20 74 6f |nly nece|ssary to|
|00005f80| 20 6d 61 6b 65 20 74 68 | 65 20 63 6f 64 65 20 6c | make th|e code l|
|00005f90| 6f 6f 6b 20 61 20 6c 69 | 74 74 6c 65 20 62 69 74 |ook a li|ttle bit|
|00005fa0| 20 63 6c 65 61 6e 65 72 | 2e 0a 3e 0a 0a 0a 2a 2a | cleaner|..>...**|
|00005fb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005fc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005fd0| 2a 2a 2a 2a 2a 2a 0a 42 | 72 75 63 65 20 41 20 42 |******.B|ruce A B|
|00005fe0| 61 63 6b 6d 61 6e 20 28 | 42 72 75 63 65 40 46 72 |ackman (|Bruce@Fr|
|00005ff0| 6f 6e 74 69 65 72 54 65 | 63 68 2e 43 4f 4d 29 0a |ontierTe|ch.COM).|
|00006000| 46 72 6f 6e 74 69 65 72 | 20 54 65 63 68 6e 6f 6c |Frontier| Technol|
|00006010| 6f 67 69 65 73 20 43 6f | 72 70 6f 72 61 74 69 6f |ogies Co|rporatio|
|00006020| 6e 0a 31 30 32 30 31 20 | 4e 6f 72 74 68 20 50 6f |n.10201 |North Po|
|00006030| 72 74 20 57 61 73 68 69 | 6e 67 74 6f 6e 20 52 6f |rt Washi|ngton Ro|
|00006040| 61 64 0a 4d 65 71 75 6f | 6e 2c 20 20 57 49 20 20 |ad.Mequo|n, WI |
|00006050| 35 33 30 39 32 0a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |53092.**|********|
|00006060| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006070| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0a 0a |********|******..|
|00006080| 46 72 6f 6d 20 77 69 6c | 73 6f 6e 40 66 74 70 2e |From wil|son@ftp.|
|00006090| 63 6f 6d 20 57 65 64 20 | 4d 61 79 20 20 34 20 30 |com Wed |May 4 0|
|000060a0| 35 3a 35 35 3a 31 34 20 | 31 39 39 34 0a 52 65 63 |5:55:14 |1994.Rec|
|000060b0| 65 69 76 65 64 3a 20 66 | 72 6f 6d 20 66 74 70 2e |eived: f|rom ftp.|
|000060c0| 63 6f 6d 20 28 77 64 34 | 30 2e 66 74 70 2e 63 6f |com (wd4|0.ftp.co|
|000060d0| 6d 29 20 62 79 20 53 75 | 6e 53 49 54 45 2e 55 6e |m) by Su|nSITE.Un|
|000060e0| 63 2e 45 44 55 20 28 35 | 2e 36 35 63 2b 49 44 41 |c.EDU (5|.65c+IDA|
|000060f0| 2f 46 76 4b 2d 31 2e 30 | 37 29 20 77 69 74 68 20 |/FvK-1.0|7) with |
|00006100| 53 4d 54 50 0a 20 20 20 | 20 20 20 20 20 20 20 69 |SMTP. | i|
|00006110| 64 20 41 44 31 36 35 31 | 38 3b 20 57 65 64 2c 20 |d AD1651|8; Wed, |
|00006120| 34 20 4d 61 79 20 31 39 | 39 34 20 30 39 3a 35 35 |4 May 19|94 09:55|
|00006130| 3a 32 32 20 2d 30 34 30 | 30 0a 52 65 63 65 69 76 |:22 -040|0.Receiv|
|00006140| 65 64 3a 20 62 79 20 66 | 74 70 2e 63 6f 6d 20 20 |ed: by f|tp.com |
|00006150| 3b 20 57 65 64 2c 20 34 | 20 4d 61 79 20 31 39 39 |; Wed, 4| May 199|
|00006160| 34 20 30 39 3a 35 35 3a | 31 34 20 2d 30 34 30 30 |4 09:55:|14 -0400|
|00006170| 0a 52 65 63 65 69 76 65 | 64 3a 20 62 79 20 66 74 |.Receive|d: by ft|
|00006180| 70 2e 63 6f 6d 20 20 3b | 20 57 65 64 2c 20 34 20 |p.com ;| Wed, 4 |
|00006190| 4d 61 79 20 31 39 39 34 | 20 30 39 3a 35 35 3a 31 |May 1994| 09:55:1|
|000061a0| 34 20 2d 30 34 30 30 0a | 46 72 6f 6d 3a 20 77 69 |4 -0400.|From: wi|
|000061b0| 6c 73 6f 6e 40 66 74 70 | 2e 63 6f 6d 20 28 42 72 |lson@ftp|.com (Br|
|000061c0| 61 64 20 57 69 6c 73 6f | 6e 29 0a 4d 65 73 73 61 |ad Wilso|n).Messa|
|000061d0| 67 65 2d 49 64 3a 20 3c | 39 34 30 35 30 34 31 33 |ge-Id: <|94050413|
|000061e0| 35 35 2e 41 41 32 35 36 | 35 36 40 66 74 70 2e 63 |55.AA256|56@ftp.c|
|000061f0| 6f 6d 3e 0a 53 75 62 6a | 65 63 74 3a 20 52 65 3a |om>.Subj|ect: Re:|
|00006200| 20 46 44 5f 43 4c 4f 53 | 45 20 61 66 74 65 72 20 | FD_CLOS|E after |
|00006210| 63 6c 6f 73 65 73 6f 63 | 6b 65 74 20 28 77 61 73 |closesoc|ket (was|
|00006220| 3a 20 43 75 72 69 6f 75 | 73 20 62 65 68 61 76 69 |: Curiou|s behavi|
|00006230| 6f 75 72 20 66 72 6f 6d | 20 77 69 6e 73 6f 63 6b |our from| winsock|
|00006240| 29 0a 54 6f 3a 20 42 72 | 75 63 65 40 69 73 69 2e |).To: Br|uce@isi.|
|00006250| 46 72 6f 6e 74 69 65 72 | 54 65 63 68 2e 43 4f 4d |Frontier|Tech.COM|
|00006260| 0a 44 61 74 65 3a 20 57 | 65 64 2c 20 34 20 4d 61 |.Date: W|ed, 4 Ma|
|00006270| 79 20 31 39 39 34 20 30 | 39 3a 35 35 3a 31 34 20 |y 1994 0|9:55:14 |
|00006280| 2d 30 34 30 30 20 28 45 | 44 54 29 0a 43 63 3a 20 |-0400 (E|DT).Cc: |
|00006290| 77 69 6e 73 6f 63 6b 2d | 68 61 63 6b 65 72 73 40 |winsock-|hackers@|
|000062a0| 73 75 6e 73 69 74 65 2e | 75 6e 63 2e 65 64 75 2c |sunsite.|unc.edu,|
|000062b0| 20 77 69 6c 73 6f 6e 40 | 66 74 70 2e 63 6f 6d 0a | wilson@|ftp.com.|
|000062c0| 49 6e 2d 52 65 70 6c 79 | 2d 54 6f 3a 20 3c 32 44 |In-Reply|-To: <2D|
|000062d0| 43 37 42 34 30 43 2d 30 | 30 30 30 30 30 30 31 40 |C7B40C-0|0000001@|
|000062e0| 42 72 75 63 65 73 2e 46 | 72 6f 6e 74 69 65 72 54 |Bruces.F|rontierT|
|000062f0| 65 63 68 2e 43 4f 4d 3e | 20 66 72 6f 6d 20 22 42 |ech.COM>| from "B|
|00006300| 72 75 63 65 40 69 73 69 | 2e 46 72 6f 6e 74 69 65 |ruce@isi|.Frontie|
|00006310| 72 54 65 63 68 2e 43 4f | 4d 22 20 61 74 20 4d 61 |rTech.CO|M" at Ma|
|00006320| 79 20 34 2c 20 39 34 20 | 30 38 3a 34 31 3a 31 34 |y 4, 94 |08:41:14|
|00006330| 20 61 6d 0a 58 2d 4d 61 | 69 6c 65 72 3a 20 45 4c | am.X-Ma|iler: EL|
|00006340| 4d 20 5b 76 65 72 73 69 | 6f 6e 20 32 2e 34 20 50 |M [versi|on 2.4 P|
|00006350| 4c 32 33 5d 0a 4d 69 6d | 65 2d 56 65 72 73 69 6f |L23].Mim|e-Versio|
|00006360| 6e 3a 20 31 2e 30 0a 43 | 6f 6e 74 65 6e 74 2d 54 |n: 1.0.C|ontent-T|
|00006370| 79 70 65 3a 20 74 65 78 | 74 2f 70 6c 61 69 6e 3b |ype: tex|t/plain;|
|00006380| 20 63 68 61 72 73 65 74 | 3d 55 53 2d 41 53 43 49 | charset|=US-ASCI|
|00006390| 49 0a 43 6f 6e 74 65 6e | 74 2d 54 72 61 6e 73 66 |I.Conten|t-Transf|
|000063a0| 65 72 2d 45 6e 63 6f 64 | 69 6e 67 3a 20 37 62 69 |er-Encod|ing: 7bi|
|000063b0| 74 0a 43 6f 6e 74 65 6e | 74 2d 4c 65 6e 67 74 68 |t.Conten|t-Length|
|000063c0| 3a 20 37 30 37 20 20 20 | 20 20 20 20 0a 0a 3e 3e |: 707 | ..>>|
|000063d0| 20 49 74 20 73 6f 72 74 | 20 6f 66 20 73 6f 75 6e | It sort| of soun|
|000063e0| 64 73 20 6c 69 6b 65 20 | 79 6f 75 27 72 65 20 61 |ds like |you're a|
|000063f0| 67 72 65 65 69 6e 67 20 | 77 69 74 68 20 6d 65 2c |greeing |with me,|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.